-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
145 lines (145 loc) · 3.47 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"$schema": "http://json.schemastore.org/eslintrc",
"env": {
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"fp",
"import",
"jsx-a11y",
"prettier",
"prefer-arrow",
"jest",
"sort-keys-fix",
"standard",
"unicorn"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:jest/recommended",
"plugin:jsx-a11y/recommended",
"plugin:unicorn/recommended",
"standard",
"prettier",
"prettier/standard"
],
"rules": {
"arrow-body-style": ["error", "as-needed"],
"comma-dangle": "off",
"no-duplicate-imports": "off",
"indent": "off",
"no-case-declarations": "off",
"no-unexpected-multiline": "off",
"no-console": [
"warn",
{
"allow": ["error", "warn"]
}
],
"quotes": ["error", "single"],
"import/default": "off",
"import/no-duplicates": "off",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/prefer-nullish-coalescing": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/unbound-method": "off",
"fp/no-arguments": "error",
"fp/no-class": "error",
"fp/no-delete": "error",
"fp/no-events": "error",
"fp/no-get-set": "error",
"fp/no-let": "error",
"fp/no-loops": "error",
"fp/no-mutating-assign": "error",
"fp/no-mutating-methods": "error",
"fp/no-mutation": [
"error",
{
"commonjs": true
}
],
"fp/no-proxy": "error",
"fp/no-rest-parameters": "off",
"fp/no-this": "error",
"fp/no-throw": "error",
"fp/no-valueof-field": "error",
"jsx-a11y/label-has-associated-control": "off",
"prettier/prettier": "error",
"prefer-arrow/prefer-arrow-functions": [
"error",
{
"disallowPrototype": true,
"singleReturnOnly": false,
"classPropertiesAllowed": false
}
],
"sort-keys-fix/sort-keys-fix": "error",
"unicorn/consistent-function-scoping": "off",
"unicorn/filename-case": [
"error",
{
"case": "camelCase"
}
],
"unicorn/prevent-abbreviations": "off",
"@typescript-eslint/naming-convention": 0
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/internal-regex": "^(src|api|lib)",
"import/resolver": {
"typescript": {
"directory": "./"
}
}
},
"overrides": [
{
"files": ["next-env.d.ts"],
"rules": {
"unicorn/filename-case": "off"
}
},
{
"files": ["*.stories.ts"],
"rules": {
"@typescript-eslint/ban-ts-ignore": "off"
}
},
{
"files": ["postcss.config.js"],
"rules": {
"import/order": "off"
}
},
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}