-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
59 lines (58 loc) · 1.58 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
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser",
"plugins": ["react", "prettier", "@typescript-eslint", "simple-import-sort", "@limegrass/import-alias"],
"extends": [
"plugin:react/recommended",
"plugin:@next/next/recommended",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:tailwindcss/recommended",
"prettier"
],
"overrides": [
{
"files": ["**/*.ts"],
"rules": {
"import/prefer-default-export": "off"
}
}
],
"rules": {
"complexity": ["error", 20],
"no-console": "off",
"import/no-unresolved": "error",
"import/extensions": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"simple-import-sort/imports": "error",
"import/no-cycle": "off",
"import/newline-after-import": "error",
"react/jsx-curly-brace-presence": ["error", { "props": "never", "children": "never" }],
"no-nested-ternary": "error",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"@limegrass/import-alias/import-alias": "error",
"@typescript-eslint/no-floating-promises": "off",
"tailwindcss/no-custom-classname": "error"
},
"settings": {
"tailwindcss": {
"config": "./tailwind-config.ts"
}
},
"ignorePatterns": ["next.config.js"]
}