forked from daostack/alchemy
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
75 lines (75 loc) · 2.77 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"env": {
"commonjs": true,
"node": true,
"es6": true,
"browser": true,
"mocha": true,
"jest": true
},
"settings": {
"react": {
"version": "detect", // React version. "detect" automatically picks the version you have installed.
}
},
"rules": {
/**
* disable or warn for perpetuity
*/
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-explicit-any": "off",
"max-len": "off",
"react/display-name" : "off",
"sort-imports": "off",
/**
* convert to error when all have been manually fixed
*/
"require-atomic-updates": "warn",
"no-console": "warn",
"@typescript-eslint/ban-ts-ignore": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"react/jsx-no-bind": "warn",
/**
* outright errors
*/
"no-useless-escape": "error",
"react/prop-types": "off",
"react/no-unescaped-entities": "error",
"indent": "off", // to not interfere with @typescript just below
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "as", "objectLiteralTypeAssertions": "allow-as-parameter" }],
"no-empty-function": "off", // to not interfere with @typescript just below
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": ["error", { "allowSingleExtends": true }],
"one-var": ["error", "never"],
"no-var": "error",
"react/jsx-boolean-value": "error",
"react/jsx-curly-spacing": "error",
"no-bitwise": "error",
"@typescript-eslint/interface-name-prefix": ["error", "always"],
"prefer-const": "error",
"no-unused-expressions": "error",
"no-unused-vars": "off", // to not interfere with @typescript just below
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "[_].*" }],
"quotes": ["error", "double"],
// "import/order": "error",
// "import/newline-after-import": "error",
"comma-dangle": ["error" ,"always-multiline"],
"semi": ["error", "always"],
"eol-last": "error",
"eqeqeq": "error",
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react"],
"parserOptions": {
"project": "./tsconfig.eslint.json"
}
}