-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
38 lines (37 loc) · 1.11 KB
/
eslint.config.mjs
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
import antfu from "@antfu/eslint-config";
import tailwind from "eslint-plugin-tailwindcss";
export default antfu({
stylistic: {
indent: 2,
quotes: "double",
semi: true,
trailingComma: null,
},
typescript: true,
vue: true,
}, {
plugins: {
tailwind,
},
rules: {
"no-multiple-empty-lines": "error",
"node/prefer-global/process": "off",
"style/brace-style": ["warn", "1tbs", { allowSingleLine: true }],
"vue/no-v-for-template-key": "off",
"vue/block-order": ["error", {
order: ["script", "template", "style"],
}],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"vue/multi-word-component-names": "off",
"symbol-description": "off",
"regexp/no-obscure-range": "off",
"yaml/plain-scalar": "off",
"tailwind/classnames-order": ["warn"],
"tailwind/enforces-negative-arbitrary-values": ["warn"],
"tailwind/enforces-shorthand": ["error"],
"tailwind/no-contradicting-classname": ["error"],
"tailwind/no-unnecessary-arbitrary-value": ["error"],
"tailwind/no-custom-classname": "off",
},
});