-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
47 lines (46 loc) · 1.19 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
42
43
44
45
46
47
module.exports = {
extends: ['eslint:recommended', 'plugin:import/errors', 'prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
env: {
node: true,
es6: true,
},
rules: {
'no-console': 'off',
strict: ['error', 'global'],
curly: 'off',
'no-unused-vars': [2, { args: 'none', argsIgnorePattern: '^_' }],
'no-use-before-define': 'error',
'no-prototype-builtins': 'off',
'prefer-const': 'off',
'no-constant-condition': 'off',
'import/default': 'off',
'import/extensions': ['error', 'never', { json: 'always' }],
'import/first': 'error',
'import/namespace': 'off',
'import/no-duplicates': 'error',
'import/no-named-as-default-member': 'off',
'import/no-useless-path-segments': 'error',
'import/no-unresolved': 'error',
},
settings: {
'import/external-module-folders': ['node_modules'],
'import/resolver': {
typescript: {},
},
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx', '.d.ts'],
},
},
globals: {
describe: true,
expect: true,
test: true,
},
};