@acfatah/eslint-preset 1.2.0 → 1.3.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/README.md +1 -2
- package/dist/index.d.ts +48 -54
- package/dist/index.mjs +1 -2
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -64,7 +64,6 @@ export default config(
|
|
|
64
64
|
{
|
|
65
65
|
rules: {
|
|
66
66
|
...preset,
|
|
67
|
-
...markdown,
|
|
68
67
|
|
|
69
68
|
// Specifically for Vue projects
|
|
70
69
|
...vue,
|
|
@@ -118,7 +117,7 @@ File: `src/files/.vscode/settings.json`
|
|
|
118
117
|
{
|
|
119
118
|
// Disable the default formatter, use eslint instead
|
|
120
119
|
"prettier.enable": false,
|
|
121
|
-
"editor.formatOnSave":
|
|
120
|
+
"editor.formatOnSave": true,
|
|
122
121
|
|
|
123
122
|
// Auto fix
|
|
124
123
|
"editor.codeActionsOnSave": {
|
package/dist/index.d.ts
CHANGED
|
@@ -8,53 +8,41 @@ import { default as config } from '@antfu/eslint-config';
|
|
|
8
8
|
* This preset integrates the `@eslint/markdown` plugin.
|
|
9
9
|
* See: https://github.com/eslint/markdown
|
|
10
10
|
*/
|
|
11
|
-
export declare const markdown: {
|
|
12
|
-
name: string;
|
|
13
|
-
files: string[];
|
|
14
|
-
language: string;
|
|
15
|
-
plugins: {};
|
|
16
|
-
rules: {
|
|
17
|
-
readonly "markdown/fenced-code-language": "error";
|
|
18
|
-
readonly "markdown/heading-increment": "error";
|
|
19
|
-
readonly "markdown/no-duplicate-definitions": "error";
|
|
20
|
-
readonly "markdown/no-empty-definitions": "error";
|
|
21
|
-
readonly "markdown/no-empty-images": "error";
|
|
22
|
-
readonly "markdown/no-empty-links": "error";
|
|
23
|
-
readonly "markdown/no-invalid-label-refs": "error";
|
|
24
|
-
readonly "markdown/no-missing-atx-heading-space": "error";
|
|
25
|
-
readonly "markdown/no-missing-label-refs": "error";
|
|
26
|
-
readonly "markdown/no-missing-link-fragments": "error";
|
|
27
|
-
readonly "markdown/no-multiple-h1": "error";
|
|
28
|
-
readonly "markdown/no-reference-like-urls": "error";
|
|
29
|
-
readonly "markdown/no-reversed-media-syntax": "error";
|
|
30
|
-
readonly "markdown/no-space-in-emphasis": "error";
|
|
31
|
-
readonly "markdown/no-unused-definitions": "error";
|
|
32
|
-
readonly "markdown/require-alt-text": "error";
|
|
33
|
-
readonly "markdown/table-column-count": "error";
|
|
34
|
-
};
|
|
35
|
-
}[];
|
|
11
|
+
export declare const markdown: {};
|
|
36
12
|
export declare const preset: {
|
|
37
|
-
"sort-imports":
|
|
38
|
-
"perfectionist/sort-imports":
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
13
|
+
"sort-imports": "off";
|
|
14
|
+
"perfectionist/sort-imports": [
|
|
15
|
+
"error",
|
|
16
|
+
{
|
|
17
|
+
partitionByNewLine: true;
|
|
18
|
+
newlinesBetween: "ignore";
|
|
19
|
+
ignoreCase: false;
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
"perfectionist/sort-exports": [
|
|
23
|
+
"error",
|
|
24
|
+
{
|
|
25
|
+
partitionByNewLine: true;
|
|
26
|
+
newlinesBetween: "ignore";
|
|
27
|
+
ignoreCase: false;
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
"space-before-function-paren": [
|
|
31
|
+
"error",
|
|
32
|
+
{
|
|
33
|
+
anonymous: "never";
|
|
34
|
+
named: "never";
|
|
35
|
+
asyncArrow: "always";
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
"style/padding-line-between-statements": [
|
|
39
|
+
"error",
|
|
40
|
+
{
|
|
41
|
+
blankLine: "always";
|
|
42
|
+
prev: "*";
|
|
43
|
+
next: "return";
|
|
44
|
+
}
|
|
45
|
+
];
|
|
58
46
|
};
|
|
59
47
|
/**
|
|
60
48
|
* Eslint preset for Tailwind CSS.
|
|
@@ -63,11 +51,14 @@ export declare const preset: {
|
|
|
63
51
|
* See: https://github.com/schoero/eslint-plugin-better-tailwindcss
|
|
64
52
|
*/
|
|
65
53
|
export declare const tailwind: {
|
|
66
|
-
"better-tailwindcss/enforce-consistent-line-wrapping":
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
"better-tailwindcss/enforce-consistent-line-wrapping": [
|
|
55
|
+
"warn",
|
|
56
|
+
{
|
|
57
|
+
printWidth: number;
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
"better-tailwindcss/no-restricted-classes": "off";
|
|
61
|
+
"better-tailwindcss/no-unregistered-classes": "off";
|
|
71
62
|
};
|
|
72
63
|
/**
|
|
73
64
|
* Eslint preset for Vue.js files.
|
|
@@ -76,9 +67,12 @@ export declare const tailwind: {
|
|
|
76
67
|
* See: https://eslint.vuejs.org/
|
|
77
68
|
*/
|
|
78
69
|
export declare const vue: {
|
|
79
|
-
"vue/object-property-newline":
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
"vue/object-property-newline": [
|
|
71
|
+
"error",
|
|
72
|
+
{
|
|
73
|
+
allowAllPropertiesOnSameLine: true;
|
|
74
|
+
}
|
|
75
|
+
];
|
|
82
76
|
};
|
|
83
77
|
|
|
84
78
|
export {
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acfatah/eslint-preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"description": "Eslint config preset.",
|
|
6
6
|
"author": "Achmad F. Ibrahim <acfatah@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"lint:commit-message": "bunx --bun commitlint --edit",
|
|
37
37
|
"format": "bunx --bun eslint --fix",
|
|
38
38
|
"typecheck": "tsc --noEmit",
|
|
39
|
-
"release": "bunx --bun bumpp --execute=\"bun install\""
|
|
40
|
-
"publish": "npm publish --access public"
|
|
39
|
+
"release": "bunx --bun bumpp --execute=\"bun install\""
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
42
|
"@antfu/eslint-config": "^6.7.1",
|
|
44
43
|
"@eslint/markdown": "^7.5.1",
|
|
45
44
|
"eslint-plugin-better-tailwindcss": "^3.8.0",
|
|
45
|
+
"eslint-plugin-format": "^1.1.0",
|
|
46
46
|
"eslint-plugin-vue": "^10.6.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"bumpp": "^10.3.2",
|
|
53
53
|
"bun-plugin-dts": "^0.3.0",
|
|
54
54
|
"eslint": "^9.39.2",
|
|
55
|
-
"eslint-plugin-format": "^1.1.0",
|
|
56
55
|
"simple-git-hooks": "^2.13.1"
|
|
57
56
|
},
|
|
58
57
|
"simple-git-hooks": {
|