forked from DustinBrett/daedalOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
129 lines (129 loc) · 3.86 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"extends": [
"airbnb",
"airbnb/hooks",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:jest/recommended",
"plugin:jest-dom/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:testing-library/react",
"plugin:prettier/recommended",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
"prettier",
"next",
"next/core-web-vitals",
"plugin:@next/next/recommended"
],
"plugins": [
"@next/next",
"@typescript-eslint",
"import",
"jest",
"jest-dom",
"prettier",
"react",
"react-hooks",
"simple-import-sort",
"sonarjs",
"sort-keys-fix",
"testing-library",
"unicorn"
],
"rules": {
"@next/next/no-img-element": "off",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{ "prefer": "type-imports" }
],
"@typescript-eslint/explicit-function-return-type": [
"error",
{ "allowExpressions": true }
],
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-redeclare": "error",
"@typescript-eslint/no-shadow": [
"error",
{
"ignoreFunctionTypeParameterNameValueShadow": false,
"ignoreTypeValueShadow": false
}
],
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-reduce-type-parameter": "error",
"@typescript-eslint/sort-type-union-intersection-members": "error",
"dot-notation": "off",
"import/extensions": [
"error",
"ignorePackages",
{ "ts": "never", "tsx": "never" }
],
"import/no-cycle": "off",
"import/prefer-default-export": "off",
"no-implicit-coercion": "error",
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"no-shadow": ["error", { "hoist": "all" }],
"no-underscore-dangle": "off",
"no-unsafe-optional-chaining": "error",
"react/function-component-definition": [
"error",
{ "namedComponents": "arrow-function" }
],
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"react/jsx-no-useless-fragment": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-sort-props": [
"error",
{
"reservedFirst": true,
"shorthandLast": true
}
],
"react/require-default-props": "off",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-nested-template-literals": "off",
"sort-keys-fix/sort-keys-fix": "error",
"unicorn/filename-case": "off",
"unicorn/import-style": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-await-expression-member": "off",
"unicorn/no-empty-file": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-dom-node-append": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-object-from-entries": "off",
"unicorn/prefer-switch": "off",
"unicorn/prevent-abbreviations": "off"
},
"parserOptions": {
"project": ["tsconfig.json"]
}
}