-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
48 lines (46 loc) · 1.02 KB
/
eslint.config.js
File metadata and controls
48 lines (46 loc) · 1.02 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
import antfu from "@antfu/eslint-config";
import tailwindcss from "eslint-plugin-better-tailwindcss";
const twConfig = {
extends: [
tailwindcss.configs["recommended-warn"],
],
rules: {
"better-tailwindcss/enforce-consistent-line-wrapping": "off",
"better-tailwindcss/no-unknown-classes": ["warn"],
},
settings: {
"better-tailwindcss": {
entryPoint: "app/style.css",
},
},
};
export default antfu({
stylistic: {
semi: true,
quotes: "double",
},
rules: {
"style/arrow-parens": ["error", "as-needed"],
"ts/strict-boolean-expressions": "off",
"pnpm/json-enforce-catalog": "off",
"pnpm/json-prefer-workspace-settings": "off",
"pnpm/json-valid-catalog": "off",
},
typescript: {
tsconfigPath: "tsconfig.json",
},
markdown: {
overrides: {
"import/consistent-type-specifier-style": "off",
},
},
vue: {
overrides: {
"vue/html-self-closing": ["error", {
html: {
void: "any",
},
}],
},
},
}, twConfig);