forked from feathr-ai/feathr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
55 lines (55 loc) · 1.34 KB
/
.eslintrc
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
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"plugins": ["react", "@typescript-eslint/eslint-plugin", "prettier"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".tsx", ".ts", ".jsx", ".js", ".json"]
},
"typescript": {}
}
},
"extends": [
// https://github.com/eslint/eslint/blob/main/conf/eslint-recommended.js
"eslint:recommended",
// https://github.com/facebook/create-react-app/tree/main/packages/eslint-config-react-app
"react-app",
// https://reactjs.org/docs/hooks-rules.html
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"plugin:json/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"dot-notation": "error",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never",
"js": "never",
"jsx": "never"
}
],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/prefer-default-export": "off",
"import/no-unresolved": "error",
"import/no-dynamic-require": "off",
"import/no-mutable-exports": "warn"
},
"overrides": [
{
"files": ["**/*.ts?(x)"],
"rules": {}
}
]
}