-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
72 lines (71 loc) · 1.71 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
64
65
66
67
68
69
70
71
72
const rules = {
'class-methods-use-this': 0,
'comma-dangle': 0,
'func-names': 0,
'import/no-extraneous-dependencies': 0,
'import/no-relative-packages': 0,
'linebreak-style': ['error', 'windows'],
'max-len': ['error', 290],
'no-await-in-loop': 0,
'no-console': 0,
'no-constant-condition': 0,
'no-continue': 0,
'no-plusplus': 0,
'no-tabs': 0,
'object-curly-newline': 0,
'prefer-exponentiation-operator': 0,
'sort-imports': 0,
'no-unused-vars': 1,
'max-classes-per-file': 0,
};
module.exports = {
overrides: [
{
files: ['**/**/*.ts'],
env: {
browser: false,
node: true,
commonjs: true,
es2022: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['tsconfig.eslint.json'],
ecmaVersion: 'latest',
},
rules: {
'@typescript-eslint/indent': ['error', 'tab'],
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-explicit-any': 0,
indent: 0,
...rules,
'no-unused-vars': 0,
},
},
{
files: ['*.js', '*.mjs', '*.cjs'],
env: {
browser: false,
node: true,
commonjs: true,
es2022: true,
},
extends: ['eslint-config-airbnb-base'],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
...rules,
indent: ['error', 'tab'],
},
},
],
};