-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
83 lines (78 loc) · 1.7 KB
/
Copy patheslint.config.mjs
File metadata and controls
83 lines (78 loc) · 1.7 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
import { fileURLToPath } from "node:url";
import eslint from "@antfu/eslint-config";
import tailwind from "eslint-plugin-tailwindcss";
export default eslint(
{
stylistic: {
indent: "tab",
quotes: "double",
semi: true,
overrides: {
"style/arrow-parens": ["error", "always"],
"style/brace-style": ["error", "1tbs", { allowSingleLine: true }],
"style/max-len": ["error", { code: 120, tabWidth: 2 }],
},
},
isInEditor: false,
typescript: {
overrides: {
"ts/consistent-type-imports": "off",
"ts/consistent-type-definitions": ["error", "type"],
"ts/explicit-member-accessibility": [
"warn",
{ accessibility: "explicit" },
],
"ts/no-floating-promises": "off",
"ts/no-misused-promises": "off",
},
},
vue: false,
astro: true,
},
{
rules: {
"antfu/if-newline": "off",
"antfu/no-top-level-await": "off",
"node/prefer-global/process": "off",
"perfectionist/sort-imports": [
"warn",
{
type: "alphabetical",
order: "asc",
ignoreCase: true,
groups: [
"side-effect",
"type",
"builtin",
"external",
"index",
["internal", "sibling", "parent"],
"object",
],
internalPattern: ["^~/.*"],
newlinesBetween: "always",
environment: "bun",
},
],
"import/consistent-type-specifier-style": ["warn", "prefer-top-level"],
},
},
{
ignores: [
// Build artifacts
"**/dist/**/*",
"**/build/**/*",
"**/.turbo/**/*",
// Modules
"**/node_modules/**/*",
],
},
...tailwind.configs["flat/recommended"],
{
settings: {
tailwindcss: {
config: fileURLToPath(new URL("./application/tailwind.config.ts", import.meta.url)),
},
},
},
);