-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
105 lines (105 loc) · 3.38 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
ecmaVersion: 2017,
ecmaFeatures: {
"jsx": true
},
},
plugins: ["react"],
extends: [
'plugin:@typescript-eslint/recommended',
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
root: true,
env: {
browser: true,
node: true,
es6: true,
jest: true
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'import/no-import-module-exports': 'off',
"linebreak-style": "off",
"padded-blocks": "off",
"lines-between-class-members": "off",
"object-curly-newline": "off",
"arrow-body-style": "off",
"no-continue": "off",
"no-param-reassign": "off",
"no-useless-constructor": "off",
"class-methods-use-this": "off",
"no-multi-str": "off",
"vars-on-top": "off",
"no-await-in-loop": "off",
"radix": 0,
"no-plusplus": "off",
"no-bitwise": "off",
"no-undef": ["error"],
"prefer-destructuring": ["error", { "array": false, "object": false }, { "enforceForRenamedProperties": false }],
"max-len": ["error", { "code": 1000 }],
"indent": ["error", 4, { "SwitchCase": 1 }],
"semi": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-console": ["warn", { "allow": ["log", "warn", "error"] }],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-empty-function": ["error", {
"allow": ["constructors"]
}],
"no-fallthrough": "warn",
"quotes": ["warn", "single"],
"one-var": "off",
"one-var-declaration-per-line": "off",
"nonblock-statement-body-position": "off",
"no-extend-native": "off",
"import/no-extraneous-dependencies": "off",
"import/no-useless-path-segments": "off",
"prefer-rest-params": "off",
"no-use-before-define": "off",
"quote-props": "off",
"import/order": "off",
"arrow-parens": [2, "always"],
"no-multi-assign": "off",
"dot-notation": "off",
"newline-per-chained-call": "off",
"import/extensions": ["error", "ignorePackages", {
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}],
"import/prefer-default-export": "off",
"max-classes-per-file": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".css",
".json",
".svg"
]
}
}
}
};