-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
executable file
·89 lines (88 loc) · 2.23 KB
/
.eslintrc.json
File metadata and controls
executable file
·89 lines (88 loc) · 2.23 KB
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"prettier",
"plugin:react/recommended",
"prettier/react",
"plugin:promise/recommended",
"plugin:import/typescript",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": { "jsx": true }
},
"env": { "node": true, "browser": true, "es6": true, "jest": true },
"plugins": [
"react",
"prettier",
"promise",
"react-hooks",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"prettier/prettier": [
"error",
{ "printWidth": 80, "trailingComma": "all", "singleQuote": true }
],
"no-use-before-define": "off",
"react/jsx-props-no-spreading": "off",
"react/forbid-prop-types": "off",
"react/require-default-props": "off",
"react/no-unused-prop-types": "off",
"react/prop-types": "off",
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": "off",
"react/jsx-curly-brace-presence": "off",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"no-underscore-dangle": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-undef": "off",
"import/no-unresolved": [
2,
{
"ignore": [
"components",
"scenes",
"static",
"store",
"styles",
"test-utils",
"utils",
"App",
"App.test",
"setupTests"
]
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/*.stories.js", "**/*.spec.js", "**/*.test.js"]
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"jsx-a11y/label-has-associated-control": "off",
"react/display-name": "off"
}
}