-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
54 lines (54 loc) · 1.3 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/strict",
"next/core-web-vitals",
"prettier"
],
"plugins": [
"@typescript-eslint",
"functional",
"formatjs",
"simple-import-sort"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/consistent-type-imports": [
"error",
{"fixStyle": "separate-type-imports"}
],
"functional/prefer-readonly-type": "error",
"react/function-component-definition": [
"error",
{
"namedComponents": "function-declaration",
"unnamedComponents": "function-expression"
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"formatjs/enforce-id": [
"error",
{"idInterpolationPattern": "[sha512:contenthash:base64:6]"}
],
"no-console": ["error", {"allow": ["error"]}]
},
"overrides": [
{
"files": "*.cjs",
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"ignorePatterns": ["src/graphql/generated/**"]
}