This repository was archived by the owner on Jul 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
110 lines (110 loc) · 2.87 KB
/
.eslintrc.json
File metadata and controls
110 lines (110 loc) · 2.87 KB
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
{
"extends": [
"next/core-web-vitals",
"plugin:tailwindcss/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["tailwindcss", "import", "@typescript-eslint"],
"parserOptions": {
"project": "tsconfig.json"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "."]
}
},
"tailwindcss": {
"config": "./tailwind.config.js"
}
},
"ignorePatterns": ["node_modules", "jest", "out", "*.config.js"],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"tailwindcss/classnames-order": ["warn", { "officialSorting": true }],
"tailwindcss/enforces-negative-arbitrary-values": "warn",
"tailwindcss/enforces-shorthand": "warn",
"tailwindcss/migration-from-tailwind-2": "warn",
"tailwindcss/no-custom-classname": "warn",
"tailwindcss/no-contradicting-classname": "error",
"@typescript-eslint/no-explicit-any": "warn",
"import/no-named-as-default": 0,
"jsx-a11y/alt-text": 0,
"@typescript-eslint/ban-ts-comment": 0,
"react/jsx-no-literals": "error",
"no-restricted-imports": [
"error",
{
"name": "next/link",
"message": "Please import from `@/i18n/routing` instead."
},
{
"name": "next/navigation",
"importNames": ["useRouter", "usePathname"],
"message": "Please import from `@/i18n/routing` instead."
}
],
"import/order": [
"warn",
{
"groups": ["builtin", "external", "internal"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
},
{
"pattern": "next",
"group": "external",
"position": "before"
},
{
"pattern": "next/**",
"group": "external",
"position": "before"
},
{
"pattern": "frontastic",
"group": "internal",
"position": "after"
},
{
"pattern": "frontastic/**",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
},
"overrides": [
{
"files": ["**/*.spec.{ts,tsx}"],
"extends": ["plugin:jest/recommended"],
"env": {
"jest": true
},
"plugins": ["jest"],
"rules": {
"react/jsx-no-literals": "off"
}
},
{
"files": ["**/*.stories.{ts,tsx}", "**/storybook/**/*.{ts,tsx}"],
"rules": {
"react/jsx-no-literals": "off"
}
}
]
}