-
Notifications
You must be signed in to change notification settings - Fork 38
/
.eslintrc.json
42 lines (42 loc) · 1.46 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:react/recommended"
],
"plugins": ["@typescript-eslint", "react", "react-hooks"],
"env": { "browser": true, "node": true, "es6": true },
"globals": {},
"ignorePatterns": [
"client/src/_types/snarkjs/SnarkTypes.ts",
"mockchain/lib/"
],
"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"
},
"settings": { "react": { "version": "detect" } },
"parserOptions": {
"ecmaFeatures": { "modules": true, "legacyDecorators": true },
"sourceType": "module"
}
}