@acfatah/eslint-preset 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -93
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,10 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import antfu from '@antfu/eslint-config';
|
|
4
|
+
import { ESLint } from 'eslint';
|
|
4
5
|
|
|
5
6
|
export declare function defineConfig(options: Parameters<typeof antfu>[0], ...userConfigs: Parameters<typeof antfu>[1][]): ReturnType<typeof antfu>;
|
|
6
|
-
export declare const betterTailwindcssPlugin:
|
|
7
|
-
"better-tailwindcss": {
|
|
8
|
-
configs: {
|
|
9
|
-
[x: string]: {
|
|
10
|
-
plugins: string[];
|
|
11
|
-
rules: {
|
|
12
|
-
[x: string]: "warn" | "error";
|
|
13
|
-
};
|
|
14
|
-
} | {
|
|
15
|
-
plugins: {};
|
|
16
|
-
rules: {
|
|
17
|
-
[x: string]: "warn" | "error";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
meta: {
|
|
22
|
-
name: string;
|
|
23
|
-
};
|
|
24
|
-
rules: Record<string, import("eslint").JSRuleDefinition>;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
7
|
+
export declare const betterTailwindcssPlugin: Record<string, ESLint.Plugin>;
|
|
27
8
|
/**
|
|
28
9
|
* Eslint preset for Markdown files.
|
|
29
10
|
*
|
|
@@ -81,78 +62,12 @@ export declare const tailwind: {
|
|
|
81
62
|
];
|
|
82
63
|
"better-tailwindcss/no-restricted-classes": "off";
|
|
83
64
|
"better-tailwindcss/no-unknown-classes": "off";
|
|
84
|
-
|
|
85
|
-
"better-tailwindcss/enforce-consistent-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
];
|
|
91
|
-
"better-tailwindcss/no-restricted-classes": "off";
|
|
92
|
-
"better-tailwindcss/no-unknown-classes": "off";
|
|
93
|
-
} | {
|
|
94
|
-
"better-tailwindcss/enforce-consistent-line-wrapping": [
|
|
95
|
-
"warn",
|
|
96
|
-
{
|
|
97
|
-
printWidth: number;
|
|
98
|
-
}
|
|
99
|
-
];
|
|
100
|
-
"better-tailwindcss/no-restricted-classes": "off";
|
|
101
|
-
"better-tailwindcss/no-unknown-classes": "off";
|
|
102
|
-
} | {
|
|
103
|
-
"better-tailwindcss/enforce-consistent-line-wrapping": [
|
|
104
|
-
"warn",
|
|
105
|
-
{
|
|
106
|
-
printWidth: number;
|
|
107
|
-
}
|
|
108
|
-
];
|
|
109
|
-
"better-tailwindcss/no-restricted-classes": "off";
|
|
110
|
-
"better-tailwindcss/no-unknown-classes": "off";
|
|
111
|
-
} | {
|
|
112
|
-
"better-tailwindcss/enforce-consistent-line-wrapping": [
|
|
113
|
-
"warn",
|
|
114
|
-
{
|
|
115
|
-
printWidth: number;
|
|
116
|
-
}
|
|
117
|
-
];
|
|
118
|
-
"better-tailwindcss/no-restricted-classes": "off";
|
|
119
|
-
"better-tailwindcss/no-unknown-classes": "off";
|
|
120
|
-
} | {
|
|
121
|
-
"better-tailwindcss/enforce-consistent-line-wrapping": [
|
|
122
|
-
"warn",
|
|
123
|
-
{
|
|
124
|
-
printWidth: number;
|
|
125
|
-
}
|
|
126
|
-
];
|
|
127
|
-
"better-tailwindcss/no-restricted-classes": "off";
|
|
128
|
-
"better-tailwindcss/no-unknown-classes": "off";
|
|
129
|
-
} | {
|
|
130
|
-
"better-tailwindcss/enforce-consistent-line-wrapping": [
|
|
131
|
-
"warn",
|
|
132
|
-
{
|
|
133
|
-
printWidth: number;
|
|
134
|
-
}
|
|
135
|
-
];
|
|
136
|
-
"better-tailwindcss/no-restricted-classes": "off";
|
|
137
|
-
"better-tailwindcss/no-unknown-classes": "off";
|
|
138
|
-
} | {
|
|
139
|
-
"better-tailwindcss/enforce-consistent-line-wrapping": [
|
|
140
|
-
"warn",
|
|
141
|
-
{
|
|
142
|
-
printWidth: number;
|
|
143
|
-
}
|
|
144
|
-
];
|
|
145
|
-
"better-tailwindcss/no-restricted-classes": "off";
|
|
146
|
-
"better-tailwindcss/no-unknown-classes": "off";
|
|
147
|
-
} | {
|
|
148
|
-
"better-tailwindcss/enforce-consistent-line-wrapping": [
|
|
149
|
-
"warn",
|
|
150
|
-
{
|
|
151
|
-
printWidth: number;
|
|
152
|
-
}
|
|
153
|
-
];
|
|
154
|
-
"better-tailwindcss/no-restricted-classes": "off";
|
|
155
|
-
"better-tailwindcss/no-unknown-classes": "off";
|
|
65
|
+
"better-tailwindcss/enforce-canonical-classes": "error";
|
|
66
|
+
"better-tailwindcss/enforce-consistent-class-order": "error";
|
|
67
|
+
"better-tailwindcss/no-deprecated-classes": "error";
|
|
68
|
+
"better-tailwindcss/no-duplicate-classes": "error";
|
|
69
|
+
"better-tailwindcss/no-unnecessary-whitespace": "error";
|
|
70
|
+
"better-tailwindcss/no-conflicting-classes": "error";
|
|
156
71
|
};
|
|
157
72
|
/**
|
|
158
73
|
* Eslint preset for Vue.js files.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acfatah/eslint-preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"description": "Eslint config preset.",
|
|
6
6
|
"author": "Achmad F. Ibrahim <acfatah@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"@antfu/eslint-config": "^7.2.0",
|
|
45
45
|
"@eslint/markdown": "^7.5.1",
|
|
46
46
|
"eslint": "^9.39.2",
|
|
47
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
47
|
+
"eslint-plugin-better-tailwindcss": "^4.1.1",
|
|
48
48
|
"eslint-plugin-format": "^1.3.1",
|
|
49
49
|
"eslint-plugin-vue": "^10.7.0",
|
|
50
50
|
"jiti": "^2.6.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@commitlint/cli": "^20.
|
|
54
|
-
"@commitlint/config-conventional": "^20.
|
|
55
|
-
"@types/bun": "^1.3.
|
|
53
|
+
"@commitlint/cli": "^20.4.1",
|
|
54
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
55
|
+
"@types/bun": "^1.3.8",
|
|
56
56
|
"bumpp": "^10.4.0",
|
|
57
57
|
"bun-plugin-dts": "^0.3.0",
|
|
58
58
|
"simple-git-hooks": "^2.13.1"
|