-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
50 lines (50 loc) · 1.19 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
46
47
48
49
50
module.exports = {
env: {
es2021: true,
mocha: true,
node: true
},
root: true,
extends: [
'prettier',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings'
],
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-use-before-define': 'error',
'arrow-body-style': 'off',
camelcase: ['error', { allow: ['^.*__factory$'] }],
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
ts: 'never'
}
],
'import/no-extraneous-dependencies': 'off',
'import/no-useless-path-segments': 'off',
'import/prefer-default-export': 'off',
'no-console': 'off',
'no-empty-function': 'off',
'no-param-reassign': 'warn',
'no-plusplus': ['off'],
'no-underscore-dangle': 'warn',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'prefer-destructuring': 'off',
'prefer-template': 'off'
},
settings: {
'import/resolver': {
node: {
extensions: ['.d.ts', '.js', '.ts']
}
}
}
};