-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
.eslintrc.cjs
41 lines (40 loc) · 1.24 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
parserOptions: {
parser: require.resolve('@typescript-eslint/parser'),
project: ['./tsconfig.eslint.json'],
},
env: {
browser: true,
node: true,
},
extends: ['jwalker', 'jwalker/ts', 'prettier'],
rules: {
'no-shadow': 'off',
'no-new': 'off',
'max-params': 'off',
'no-magic-numbers': 'off',
'no-unused-vars': 'off',
'no-this-before-super': 'off',
'no-use-before-define': 'off',
'class-methods-use-this': 'off',
'import/no-unused-modules': 'off',
'import/no-extraneous-dependencies': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/prefer-dom-node-append': 'off',
'security/detect-object-injection': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
'@typescript-eslint/no-use-before-define': [
'error',
{ typedefs: false, ignoreTypeReferences: true },
],
'import/extensions': [
'error',
{
js: 'ignorePackages',
},
],
},
};