forked from earthwallet/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
66 lines (66 loc) · 1.91 KB
/
.eslintrc.json
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
{
"extends": [
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
"plugin:@typescript-eslint/recommended",
"@abhijithvijayan/eslint-config/typescript",
"@abhijithvijayan/eslint-config/react",
"tslint-divid"
],
"plugins": ["@typescript-eslint"],
"overrides": [
{
"files": ["*.{ts,tsx}"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["typescript-sort-keys"],
"rules": {
"typescript-sort-keys/interface": 2,
"typescript-sort-keys/string-enum": 2,
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/switch-exhaustiveness-check": 2
}
}
],
"rules": {
"no-console": "off",
"no-extend-native": "off",
"no-alert": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/label-has-associated-control": "off",
"import/no-webpack-loader-syntax": "off",
"import/prefer-default-export": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"@typescript-eslint/interface-name-prefix": "off",
"import/no-unresolved": "off",
"no-semicolon-interface": true,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"prettier/prettier": ["error", { "singleQuote": true, "parser": "flow" }],
"import/order": [
"error",
{
"groups": [
"builtin",
["external", "internal"],
"parent",
["sibling", "index"]
],
"newlines-between": "always"
}
],
"react/no-unescaped-entities": 0,
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
},
"env": {
"webextensions": true
},
"settings": {
"react": {
"version": "detect"
}
},
"globals": {}
}