forked from darkforest-eth/darkforest-v0.6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
79 lines (79 loc) · 2.25 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
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"import",
"@projectsophon/typescript-enum"
],
"env": { "browser": true, "node": true, "es6": true },
"globals": {},
"rules": {
"eqeqeq": "error",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }],
"@typescript-eslint/no-unused-vars": [
"error",
{ "varsIgnorePattern": "(^_)", "argsIgnorePattern": "(^_)" }
],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-interface": "off",
"react/jsx-no-undef": ["error", { "allowGlobals": true }],
"react/no-unescaped-entities": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@projectsophon/typescript-enum/only-const-enum": "error",
"import/no-unresolved": ["error", { "ignore": ["^https:", "type-fest"] }],
"import/no-relative-packages": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/client/webpack.config.js",
"**/eth/**/*.ts",
"**/webserver/test/*.test.ts"
],
"optionalDependencies": false,
"peerDependencies": false,
"bundledDependencies": false
}
]
},
"settings": {
"react": { "version": "16.14" },
"import/ignore": ["react"],
"import/external-module-folders": [
"node_modules",
"packages/*",
"circuits",
"client",
"eth",
"webserver"
]
},
"parserOptions": {
"ecmaFeatures": { "modules": true, "legacyDecorators": true },
"sourceType": "module"
},
"overrides": [
{
"files": "packages/**",
"rules": {
"@projectsophon/typescript-enum/only-const-enum": "off",
"@projectsophon/typescript-enum/no-enum": "error"
}
}
]
}