-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
55 lines (55 loc) · 1.44 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
48
49
50
51
52
53
54
55
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: [
'eslint-config-airbnb-base',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint'],
rules: {
'import/extensions': 'off',
'no-use-before-define': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-prototype-builtins': 'off',
'no-underscore-dangle': 'off',
'import/prefer-default-export': 'off',
'no-console': 'off',
'no-restricted-syntax': 'off',
'no-plusplus': 'off',
'no-unused-expressions': 'off',
'guard-for-in': 'off',
'no-multi-assign': 'off',
'no-bitwise': 'off',
'no-param-reassign': 'off',
// 'no-param-reassign': [
// 'error',
// {
// props: true,
// ignorePropertyModificationsFor: ['effect', 'instance', 'vnode', 'initialVNode'],
// },
// ],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
moduleDirectory: ['./src'],
},
},
},
}