-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
47 lines (47 loc) · 1.01 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
module.exports = {
env: {
es6: true,
node: true,
"jest/globals": true
},
extends: ["plugin:react/recommended", "airbnb", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["react", "jest", "@typescript-eslint"],
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"]
}
}
},
rules: {
"class-methods-use-this": 0,
"import/extensions": [
"error",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never"
}
],
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"no-empty-function": 0,
"no-loop-func": 0,
"no-restricted-syntax": 0,
"no-underscore-dangle": 0,
"no-unused-vars": 0,
"no-use-before-define": 0,
"no-useless-constructor": 0,
"react/button-has-type": 0,
"react/jsx-filename-extension": 0
}
};