@kikiutils/eslint-config 7.0.3 → 9.0.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/vue.d.ts.map +1 -1
- package/dist/vue.js +15 -15
- package/dist/vue.js.map +1 -1
- package/package.json +31 -16
- package/src/vue.ts +17 -19
package/dist/vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue.d.ts","names":[],"sources":["../src/vue.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"vue.d.ts","names":[],"sources":["../src/vue.ts"],"mappings":";;;iBAOgB,eAAA,CAAgB,WAAA,oBAAuC,mBAAA"}
|
package/dist/vue.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { createBaseRules } from "./base.js";
|
|
2
2
|
import promise from "eslint-plugin-promise";
|
|
3
|
-
import
|
|
4
|
-
import kikiutilsEslintPluginVue from "@kikiutils/eslint-plugin-vue";
|
|
5
|
-
import tailwindcss from "eslint-plugin-tailwindcss";
|
|
3
|
+
import betteTailwindcss from "eslint-plugin-better-tailwindcss";
|
|
6
4
|
//#region src/vue.ts
|
|
7
5
|
function createVueConfig(environment = "node") {
|
|
8
6
|
return {
|
|
9
7
|
files: ["**/*.vue"],
|
|
10
8
|
plugins: {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
promise,
|
|
14
|
-
tailwindcss
|
|
9
|
+
"better-tailwindcss": betteTailwindcss,
|
|
10
|
+
promise
|
|
15
11
|
},
|
|
16
12
|
rules: {
|
|
17
13
|
...createBaseRules(environment),
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
14
|
+
"better-tailwindcss/enforce-consistent-class-order": "error",
|
|
15
|
+
"better-tailwindcss/enforce-consistent-important-position": "error",
|
|
16
|
+
"better-tailwindcss/enforce-consistent-variable-syntax": "error",
|
|
17
|
+
"better-tailwindcss/enforce-consistent-variant-order": "error",
|
|
18
|
+
"better-tailwindcss/enforce-shorthand-classes": "error",
|
|
19
|
+
"better-tailwindcss/no-deprecated-classes": "warn",
|
|
20
|
+
"better-tailwindcss/no-duplicate-classes": "error",
|
|
21
|
+
"better-tailwindcss/no-unnecessary-whitespace": "error",
|
|
21
22
|
"style/max-len": "off",
|
|
22
|
-
"tailwindcss/classnames-order": "off",
|
|
23
|
-
"tailwindcss/enforces-negative-arbitrary-values": "error",
|
|
24
|
-
"tailwindcss/enforces-shorthand": "error",
|
|
25
|
-
"tailwindcss/no-unnecessary-arbitrary-value": "error",
|
|
26
23
|
"vue/attribute-hyphenation": "error",
|
|
27
|
-
"vue/attributes-order": "
|
|
24
|
+
"vue/attributes-order": ["error", {
|
|
25
|
+
alphabetical: true,
|
|
26
|
+
sortLineLength: true
|
|
27
|
+
}],
|
|
28
28
|
"vue/block-order": ["error", { order: [
|
|
29
29
|
"template",
|
|
30
30
|
"script",
|
package/dist/vue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue.js","names":[],"sources":["../src/vue.ts"],"sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\
|
|
1
|
+
{"version":3,"file":"vue.js","names":[],"sources":["../src/vue.ts"],"sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\nimport betteTailwindcss from 'eslint-plugin-better-tailwindcss';\n// @ts-expect-error No declare file.\nimport promise from 'eslint-plugin-promise';\n\nimport { createBaseRules } from './base';\n\nexport function createVueConfig(environment: 'bun' | 'node' = 'node'): TypedFlatConfigItem {\n return {\n files: ['**/*.vue'],\n plugins: {\n 'better-tailwindcss': betteTailwindcss,\n promise,\n },\n rules: {\n ...createBaseRules(environment),\n 'better-tailwindcss/enforce-consistent-class-order': 'error',\n 'better-tailwindcss/enforce-consistent-important-position': 'error',\n 'better-tailwindcss/enforce-consistent-variable-syntax': 'error',\n 'better-tailwindcss/enforce-consistent-variant-order': 'error',\n 'better-tailwindcss/enforce-shorthand-classes': 'error',\n 'better-tailwindcss/no-deprecated-classes': 'warn',\n 'better-tailwindcss/no-duplicate-classes': 'error',\n 'better-tailwindcss/no-unnecessary-whitespace': 'error',\n 'style/max-len': 'off',\n 'vue/attribute-hyphenation': 'error',\n 'vue/attributes-order': [\n 'error',\n {\n alphabetical: true,\n sortLineLength: true,\n },\n ],\n 'vue/block-order': [\n 'error',\n {\n order: [\n 'template',\n 'script',\n 'style',\n ],\n },\n ],\n 'vue/component-api-style': 'error',\n 'vue/define-emits-declaration': 'error',\n 'vue/define-props-declaration': 'error',\n 'vue/enforce-style-attribute': 'error',\n 'vue/html-closing-bracket-newline': 'error',\n 'vue/html-closing-bracket-spacing': 'error',\n 'vue/html-indent': [\n 'error',\n 4,\n ],\n 'vue/max-attributes-per-line': [\n 'error',\n {\n multiline: 1,\n singleline: 1,\n },\n ],\n 'vue/max-len': [\n 'warn',\n {\n code: 120,\n comments: 120,\n template: 120,\n },\n ],\n 'vue/no-dupe-keys': 'error',\n 'vue/no-lone-template': 'error',\n 'vue/no-multi-spaces': 'error',\n 'vue/no-multiple-objects-in-class': 'error',\n 'vue/no-root-v-if': 'error',\n 'vue/no-template-target-blank': 'error',\n 'vue/no-v-html': 'error',\n 'vue/prefer-define-options': 'error',\n 'vue/prefer-separate-static-class': 'error',\n 'vue/require-explicit-emits': 'error',\n 'vue/require-typed-ref': 'error',\n },\n };\n}\n"],"mappings":";;;;AAOA,SAAgB,gBAAgB,cAA8B,QAA6B;AACvF,QAAO;EACH,OAAO,CAAC,WAAW;EACnB,SAAS;GACL,sBAAsB;GACtB;GACH;EACD,OAAO;GACH,GAAG,gBAAgB,YAAY;GAC/B,qDAAqD;GACrD,4DAA4D;GAC5D,yDAAyD;GACzD,uDAAuD;GACvD,gDAAgD;GAChD,4CAA4C;GAC5C,2CAA2C;GAC3C,gDAAgD;GAChD,iBAAiB;GACjB,6BAA6B;GAC7B,wBAAwB,CACpB,SACA;IACI,cAAc;IACd,gBAAgB;IACnB,CACJ;GACD,mBAAmB,CACf,SACA,EACI,OAAO;IACH;IACA;IACA;IACH,EACJ,CACJ;GACD,2BAA2B;GAC3B,gCAAgC;GAChC,gCAAgC;GAChC,+BAA+B;GAC/B,oCAAoC;GACpC,oCAAoC;GACpC,mBAAmB,CACf,SACA,EACH;GACD,+BAA+B,CAC3B,SACA;IACI,WAAW;IACX,YAAY;IACf,CACJ;GACD,eAAe,CACX,QACA;IACI,MAAM;IACN,UAAU;IACV,UAAU;IACb,CACJ;GACD,oBAAoB;GACpB,wBAAwB;GACxB,uBAAuB;GACvB,oCAAoC;GACpC,oBAAoB;GACpB,gCAAgC;GAChC,iBAAiB;GACjB,6BAA6B;GAC7B,oCAAoC;GACpC,8BAA8B;GAC9B,yBAAyB;GAC5B;EACJ"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kikiutils/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.0",
|
|
5
5
|
"description": "Using antfu/eslint-config as a base for eslint-config, slightly modified the settings and added additional plugins, mainly for my own use.",
|
|
6
6
|
"author": "kiki-kanri",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,48 +36,63 @@
|
|
|
36
36
|
"typecheck": "tsc -b --noEmit"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
39
|
+
"@eslint/css": "^1.1.0",
|
|
40
|
+
"@html-eslint/parser": "^0.59.0",
|
|
41
41
|
"eslint": ">= 9.0.0",
|
|
42
|
+
"eslint-plugin-better-tailwindcss": "^4.4.0",
|
|
42
43
|
"eslint-plugin-format": ">= 1.0.0",
|
|
43
|
-
"
|
|
44
|
+
"tailwind-csstree": "^0.3.1",
|
|
45
|
+
"tailwindcss": ">= 3.0.0",
|
|
46
|
+
"vue-eslint-parser": "^10.4.0"
|
|
44
47
|
},
|
|
45
48
|
"peerDependenciesMeta": {
|
|
46
|
-
"@
|
|
49
|
+
"@eslint/css": {
|
|
47
50
|
"optional": true
|
|
48
51
|
},
|
|
49
|
-
"@
|
|
52
|
+
"@html-eslint/parser": {
|
|
50
53
|
"optional": true
|
|
51
54
|
},
|
|
52
55
|
"eslint": {
|
|
53
56
|
"optional": true
|
|
54
57
|
},
|
|
58
|
+
"eslint-plugin-better-tailwindcss": {
|
|
59
|
+
"optional": true
|
|
60
|
+
},
|
|
55
61
|
"eslint-plugin-format": {
|
|
56
62
|
"optional": true
|
|
57
63
|
},
|
|
58
|
-
"
|
|
64
|
+
"tailwind-csstree": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"tailwindcss": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"vue-eslint-parser": {
|
|
59
71
|
"optional": true
|
|
60
72
|
}
|
|
61
73
|
},
|
|
62
74
|
"dependencies": {
|
|
63
|
-
"@antfu/eslint-config": "^8.
|
|
75
|
+
"@antfu/eslint-config": "^8.2.0",
|
|
64
76
|
"eslint-plugin-promise": "^7.2.1"
|
|
65
77
|
},
|
|
66
78
|
"devDependencies": {
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
79
|
+
"@eslint/css": "^1.1.0",
|
|
80
|
+
"@html-eslint/parser": "^0.59.0",
|
|
69
81
|
"@kikiutils/tsconfigs": "^6.0.0",
|
|
70
|
-
"@types/node": "^25.
|
|
82
|
+
"@types/node": "^25.6.0",
|
|
71
83
|
"@vitest/coverage-v8": "^4.1.4",
|
|
72
84
|
"changelogen": "^0.6.2",
|
|
85
|
+
"eslint-plugin-better-tailwindcss": "^4.4.1",
|
|
73
86
|
"eslint-plugin-format": "^2.0.1",
|
|
74
|
-
"
|
|
75
|
-
"knip": "^6.3.1",
|
|
87
|
+
"knip": "^6.4.1",
|
|
76
88
|
"publint": "^0.3.18",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
89
|
+
"tailwind-csstree": "^0.3.1",
|
|
90
|
+
"tailwindcss": "^4.2.2",
|
|
91
|
+
"tsdown": "^0.21.9",
|
|
92
|
+
"typescript": "^6.0.3",
|
|
79
93
|
"unplugin-unused": "^0.5.7",
|
|
80
|
-
"vitest": "^4.1.4"
|
|
94
|
+
"vitest": "^4.1.4",
|
|
95
|
+
"vue-eslint-parser": "^10.4.0"
|
|
81
96
|
},
|
|
82
97
|
"pnpm": {
|
|
83
98
|
"onlyBuiltDependencies": [
|
package/src/vue.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { TypedFlatConfigItem } from '@antfu/eslint-config';
|
|
2
|
-
|
|
3
|
-
import kikiutilsTailwindcss from '@kikiutils/eslint-plugin-tailwindcss';
|
|
4
|
-
import kikiutilsEslintPluginVue from '@kikiutils/eslint-plugin-vue';
|
|
2
|
+
import betteTailwindcss from 'eslint-plugin-better-tailwindcss';
|
|
5
3
|
// @ts-expect-error No declare file.
|
|
6
4
|
import promise from 'eslint-plugin-promise';
|
|
7
|
-
// @ts-expect-error No declare file.
|
|
8
|
-
import tailwindcss from 'eslint-plugin-tailwindcss';
|
|
9
5
|
|
|
10
6
|
import { createBaseRules } from './base';
|
|
11
7
|
|
|
@@ -13,26 +9,28 @@ export function createVueConfig(environment: 'bun' | 'node' = 'node'): TypedFlat
|
|
|
13
9
|
return {
|
|
14
10
|
files: ['**/*.vue'],
|
|
15
11
|
plugins: {
|
|
16
|
-
'
|
|
17
|
-
'@kikiutils/vue': kikiutilsEslintPluginVue,
|
|
12
|
+
'better-tailwindcss': betteTailwindcss,
|
|
18
13
|
promise,
|
|
19
|
-
tailwindcss,
|
|
20
14
|
},
|
|
21
15
|
rules: {
|
|
22
16
|
...createBaseRules(environment),
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
'
|
|
17
|
+
'better-tailwindcss/enforce-consistent-class-order': 'error',
|
|
18
|
+
'better-tailwindcss/enforce-consistent-important-position': 'error',
|
|
19
|
+
'better-tailwindcss/enforce-consistent-variable-syntax': 'error',
|
|
20
|
+
'better-tailwindcss/enforce-consistent-variant-order': 'error',
|
|
21
|
+
'better-tailwindcss/enforce-shorthand-classes': 'error',
|
|
22
|
+
'better-tailwindcss/no-deprecated-classes': 'warn',
|
|
23
|
+
'better-tailwindcss/no-duplicate-classes': 'error',
|
|
24
|
+
'better-tailwindcss/no-unnecessary-whitespace': 'error',
|
|
29
25
|
'style/max-len': 'off',
|
|
30
|
-
'tailwindcss/classnames-order': 'off',
|
|
31
|
-
'tailwindcss/enforces-negative-arbitrary-values': 'error',
|
|
32
|
-
'tailwindcss/enforces-shorthand': 'error',
|
|
33
|
-
'tailwindcss/no-unnecessary-arbitrary-value': 'error',
|
|
34
26
|
'vue/attribute-hyphenation': 'error',
|
|
35
|
-
'vue/attributes-order':
|
|
27
|
+
'vue/attributes-order': [
|
|
28
|
+
'error',
|
|
29
|
+
{
|
|
30
|
+
alphabetical: true,
|
|
31
|
+
sortLineLength: true,
|
|
32
|
+
},
|
|
33
|
+
],
|
|
36
34
|
'vue/block-order': [
|
|
37
35
|
'error',
|
|
38
36
|
{
|