-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
43 lines (42 loc) · 901 Bytes
/
.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
module.exports = {
env: {
es2023: true,
node: true,
browser: true,
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:prettier/recommended',
],
plugins: ['prettier'],
parserOptions: {
project: './tsconfig.eslint.json',
},
settings: {
'import/resolver': {
typescript: {},
},
},
rules: {
'prefer-const': 0,
'no-param-reassign': 0,
'no-restricted-syntax': 0,
'no-underscore-dangle': 0,
'no-constant-condition': 0,
'class-methods-use-this': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/no-use-before-define': 0,
eqeqeq: [2, 'smart'],
'newline-before-return': 2,
'no-console': 2,
'@typescript-eslint/no-unused-vars': [
2,
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
},
};