-
-
Notifications
You must be signed in to change notification settings - Fork 242
/
.eslintrc.js
57 lines (57 loc) · 1.36 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
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:jest-dom/recommended",
"plugin:testing-library/react",
"prettier",
],
plugins: ["@typescript-eslint", "jest", "jest-dom", "testing-library"],
settings: {
"import/resolver": {
typescript: {},
},
},
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
rules: {
"global-require": "off",
"no-use-before-define": "off",
"no-console": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": [
"error",
{
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
],
"import/extensions": "off",
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: true,
},
],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"testing-library/no-node-access": "off",
"testing-library/render-result-naming-convention": "off",
},
globals: {
__CLIENT__: true,
__SERVER__: true,
__DEV__: true,
},
};