-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
52 lines (52 loc) · 1.51 KB
/
.eslintrc.json
File metadata and controls
52 lines (52 loc) · 1.51 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2020, // Allows for the parsing of modern JS
"ecmaFeatures": {
"jsx": true // Allows for the parsing of JSX
}
},
"ignorePatterns": [
"docs",
"package-lock.json",
"package.json",
"!.stylelintrc.json",
"*.md",
"*.css",
"dist"
],
"extends": ["airbnb-typescript", "plugin:prettier/recommended"],
"plugins": ["@typescript-eslint", "import", "react", "prettier"],
"rules": {
"@typescript-eslint/no-explicit-any": "off", // allow any because template often can't predict users' types
"@typescript-eslint/no-use-before-define": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"react/no-danger": "off", // it's self explainatory that no-danger should be used sparingly
"react/prop-types": "off", // as long as TS strict mode is off this is not required
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"no-console": "error", // no console statements allowed,
"no-plusplus": "off",
"prettier/prettier": "off" // don't show prettier errors as it will be fixed when saved anyway
},
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"node": true,
"browser": true,
"amd": true
},
"overrides": [
{
"files": ["src/pages/run-computation/**"],
"rules": {
"import/extensions": "off"
}
}
]
}