-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
63 lines (60 loc) · 1.57 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
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
jest: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:import/recommended',
'plugin:import/errors',
'plugin:import/typescript',
'plugin:import/warnings',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'eslint-plugin-import-helpers'],
settings: {
'import/resolver': {
typescript: {},
'babel-plugin-root-import': {
rootPathPrefix: '~',
rootPathSuffix: 'src',
},
},
},
rules: {
'import-helpers/order-imports': [
'off',
{
newlinesBetween: 'always',
groups: ['/^@shared/', 'module', ['parent', 'sibling', 'index']],
alphabetize: { order: 'desc', ignoreCase: true },
},
],
'import/no-unresolved': 'off',
'import/namespace': 'off',
'import/export': 'off',
'import/default': 'off',
'import/no-duplicates': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'prettier/prettier': ['error'],
camelcase: 'off',
'no-undef': 'off',
'no-use-before-define': 'error',
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: false }],
},
};