forked from BarnBridge/barnbridge-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
49 lines (49 loc) · 1.24 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
{
"env": {
"es2020": true,
"browser": true,
"node": true
},
"extends": [
"standard",
"standard-jsx",
"standard-react",
"plugin:@typescript-eslint/recommended",
"plugin:react/jsx-runtime",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
],
"root": true,
"rules": {
"prettier/prettier": "off",
"comma-dangle": ["error", "always-multiline"],
"jsx-quotes": ["error", "prefer-double"],
"linebreak-style": ["error", "unix"],
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"no-use-before-define": "off",
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
"import/no-unresolved": ["error", { "commonjs": true }],
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off",
"react/prop-types": "warn",
"react/jsx-no-bind": "warn",
"react/no-unknown-property": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"import/no-duplicates": "warn"
},
"settings": {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
}
},
"import/ignore": "node_modules",
"react": {
"version": "detect"
}
}
}