forked from Chia-Network/chia-blockchain-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
85 lines (85 loc) · 2.62 KB
/
.eslintrc.js
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
80
81
82
83
84
85
module.exports = {
extends: [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:eslint-comments/recommended",
"plugin:jest/recommended",
"plugin:promise/recommended",
"plugin:unicorn/recommended",
"prettier",
"prettier/react",
"prettier/@typescript-eslint",
],
plugins: [
"@typescript-eslint",
"eslint-comments",
"jest",
"promise",
"unicorn",
"react",
"jsx-a11y",
"import",
"prettier",
],
env: {
"browser": true,
"es6": true,
"jest": true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
project: "./tsconfig.json",
ecmaFeatures: {
jsx: true,
},
},
rules: {
"jsx-a11y/anchor-is-valid": "off",
"consistent-return": "off",
"react/no-danger": "off",
"no-case-declarations": "off",
"eslint-comments/no-unlimited-disable": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-floating-promises": "off",
"react/jsx-props-no-spreading": "off",
"react/destructuring-assignment": "off",
"react/require-default-props": "off",
"react/default-props-match-prop-types": "off",
"unicorn/no-abusive-eslint-disable": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-object-as-default-parameter": "off",
"unicorn/explicit-length-check": "off",
"unicorn/no-null": "off",
"unicorn/no-reduce": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-lonely-if": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-new-array": "off",
"unicorn/no-array-for-each": "off",
"unicorn/prefer-spread": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/filename-case": ["error", {
"cases": {
"camelCase": true,
"pascalCase": true,
},
}],
},
};