-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
78 lines (78 loc) · 2.16 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
{
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"next/core-web-vitals",
"airbnb-base",
"airbnb-typescript/base",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json",
"extraFileExtensions": [".css"]
},
"rules": {
"prettier/prettier": "error",
"import/extensions": "off",
"import/prefer-default-export": "off",
"no-unsafe-optional-chaining": "off",
"default-param-last": "off",
"no-underscore-dangle": "off",
"no-else-return": "off",
"arrow-body-style": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"react/display-name": "off",
"camelcase": "off",
"curly": ["error", "all"],
"import/no-import-module-exports": "off",
"newline-before-return": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-shadow": "off",
"react/no-unknown-property": ["error", { "ignore": ["css"] }],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
["parent", "sibling"],
"index"
],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
},
{
"pattern": "next",
"group": "external",
"position": "before"
},
{
"pattern": "next/**",
"group": "external",
"position": "before"
},
{
"pattern": "@/**",
"group": "parent",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react", "next", "next/**"],
"newlines-between": "never",
"alphabetize": { "order": "asc", "caseInsensitive": true }
}
]
},
"ignorePatterns": [".cz-config.js"]
}