-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
56 lines (56 loc) · 1.53 KB
/
index.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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: [
"plugin:react/recommended",
"airbnb",
"plugin:testing-library/react",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "testing-library"],
overrides: [
{
files: ["**/?(*.)+spec.ts?(x)"],
extends: ["plugin:testing-library/react"],
},
],
rules: {
"@typescript-eslint/no-duplicate-enum-values": "error",
"import/no-anonymous-default-export": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"no-return-await": "off",
"global-require": "off",
"class-methods-use-this": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": [2, { extensions: [".tsx"] }],
"no-empty-function": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"react/no-danger": "off",
"import/no-extraneous-dependencies": "off",
"consistent-return": "off",
"default-case": "off",
"react/jsx-props-no-spreading": "off",
"no-restricted-syntax": "off",
"no-await-in-loop": "off",
},
};