forked from CetusProtocol/cetus-clmm-sui-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.38 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
extends: ['eslint-config-airbnb-base', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
ignorePatterns: ['tests/**', '*.js', 'examples/**'],
rules: {
'import/extensions': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error', { ignoreTypeReferences: true }],
'no-prototype-builtins': 'off',
'import/prefer-default-export': 'off',
'no-console': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'no-shadow': 'off',
'no-restricted-syntax': 'off',
'no-continue': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
camelcase: 'off',
'no-nested-ternary': 'off',
'no-await-in-loop': 'off',
'no-constant-condition': 'off',
'class-methods-use-this': 'off',
'no-empty': 'off',
'import/no-unresolved': 'off',
'no-return-await': 'off',
'no-plusplus': 'off',
'guard-for-in': 'off',
'default-case': 'off',
'no-bitwise': 'off',
'no-template-curly-in-string': 'off',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
moduleDirectory: ['node_modules', './src'],
},
},
},
parserOptions: {
project: './tsconfig.json',
},
}