@kikiutils/eslint-config 9.0.1 → 9.1.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 +4 -1
- package/dist/vue.js.map +1 -1
- package/package.json +16 -11
- package/src/vue.ts +7 -1
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":";;;iBAQgB,eAAA,CAAgB,WAAA,oBAAuC,mBAAA"}
|
package/dist/vue.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { createBaseRules } from "./base.js";
|
|
2
2
|
import promise from "eslint-plugin-promise";
|
|
3
|
+
import kikiutilsEslintPluginVue from "@kikiutils/eslint-plugin-vue";
|
|
3
4
|
import betteTailwindcss from "eslint-plugin-better-tailwindcss";
|
|
4
5
|
//#region src/vue.ts
|
|
5
6
|
function createVueConfig(environment = "node") {
|
|
6
7
|
return {
|
|
7
8
|
files: ["**/*.vue"],
|
|
8
9
|
plugins: {
|
|
10
|
+
"@kikiutils/vue": kikiutilsEslintPluginVue,
|
|
9
11
|
"better-tailwindcss": betteTailwindcss,
|
|
10
12
|
promise
|
|
11
13
|
},
|
|
12
14
|
rules: {
|
|
13
15
|
...createBaseRules(environment),
|
|
16
|
+
"@kikiutils/vue/attributes-order": ["error", { alphabeticalWithinGroup: true }],
|
|
14
17
|
"better-tailwindcss/enforce-consistent-class-order": "error",
|
|
15
18
|
"better-tailwindcss/enforce-consistent-important-position": "error",
|
|
16
19
|
"better-tailwindcss/enforce-consistent-variable-syntax": "error",
|
|
@@ -21,7 +24,7 @@ function createVueConfig(environment = "node") {
|
|
|
21
24
|
"better-tailwindcss/no-unnecessary-whitespace": "error",
|
|
22
25
|
"style/max-len": "off",
|
|
23
26
|
"vue/attribute-hyphenation": "error",
|
|
24
|
-
"vue/attributes-order": "
|
|
27
|
+
"vue/attributes-order": "off",
|
|
25
28
|
"vue/block-order": ["error", { order: [
|
|
26
29
|
"template",
|
|
27
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';\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': '
|
|
1
|
+
{"version":3,"file":"vue.js","names":[],"sources":["../src/vue.ts"],"sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\nimport kikiutilsEslintPluginVue from '@kikiutils/eslint-plugin-vue';\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 '@kikiutils/vue': kikiutilsEslintPluginVue,\n 'better-tailwindcss': betteTailwindcss,\n promise,\n },\n rules: {\n ...createBaseRules(environment),\n '@kikiutils/vue/attributes-order': [\n 'error',\n { alphabeticalWithinGroup: true },\n ],\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': 'off',\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":";;;;;AAQA,SAAgB,gBAAgB,cAA8B,QAA6B;AACvF,QAAO;EACH,OAAO,CAAC,WAAW;EACnB,SAAS;GACL,kBAAkB;GAClB,sBAAsB;GACtB;GACH;EACD,OAAO;GACH,GAAG,gBAAgB,YAAY;GAC/B,mCAAmC,CAC/B,SACA,EAAE,yBAAyB,MAAM,CACpC;GACD,qDAAqD;GACrD,4DAA4D;GAC5D,yDAAyD;GACzD,uDAAuD;GACvD,gDAAgD;GAChD,4CAA4C;GAC5C,2CAA2C;GAC3C,gDAAgD;GAChD,iBAAiB;GACjB,6BAA6B;GAC7B,wBAAwB;GACxB,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": "9.0
|
|
4
|
+
"version": "9.1.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",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@eslint/css": "^1.1.0",
|
|
40
|
-
"@html-eslint/parser": "^0.
|
|
40
|
+
"@html-eslint/parser": "^0.60.0",
|
|
41
|
+
"@kikiutils/eslint-plugin-vue": "^10.9.0",
|
|
41
42
|
"eslint": ">= 9.0.0",
|
|
42
43
|
"eslint-plugin-better-tailwindcss": "^4.4.0",
|
|
43
44
|
"eslint-plugin-format": ">= 1.0.0",
|
|
@@ -52,6 +53,9 @@
|
|
|
52
53
|
"@html-eslint/parser": {
|
|
53
54
|
"optional": true
|
|
54
55
|
},
|
|
56
|
+
"@kikiutils/eslint-plugin-vue": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
55
59
|
"eslint": {
|
|
56
60
|
"optional": true
|
|
57
61
|
},
|
|
@@ -73,25 +77,26 @@
|
|
|
73
77
|
},
|
|
74
78
|
"dependencies": {
|
|
75
79
|
"@antfu/eslint-config": "^8.2.0",
|
|
76
|
-
"eslint-plugin-promise": "^7.
|
|
80
|
+
"eslint-plugin-promise": "^7.3.0"
|
|
77
81
|
},
|
|
78
82
|
"devDependencies": {
|
|
79
|
-
"@eslint/css": "^1.
|
|
80
|
-
"@html-eslint/parser": "^0.
|
|
83
|
+
"@eslint/css": "^1.2.0",
|
|
84
|
+
"@html-eslint/parser": "^0.60.0",
|
|
85
|
+
"@kikiutils/eslint-plugin-vue": "^10.9.0",
|
|
81
86
|
"@kikiutils/tsconfigs": "^6.0.0",
|
|
82
87
|
"@types/node": "^25.6.0",
|
|
83
|
-
"@vitest/coverage-v8": "^4.1.
|
|
88
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
84
89
|
"changelogen": "^0.6.2",
|
|
85
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
90
|
+
"eslint-plugin-better-tailwindcss": "^4.5.0",
|
|
86
91
|
"eslint-plugin-format": "^2.0.1",
|
|
87
|
-
"knip": "^6.
|
|
92
|
+
"knip": "^6.9.0",
|
|
88
93
|
"publint": "^0.3.18",
|
|
89
94
|
"tailwind-csstree": "^0.3.1",
|
|
90
|
-
"tailwindcss": "^4.2.
|
|
91
|
-
"tsdown": "^0.21.
|
|
95
|
+
"tailwindcss": "^4.2.4",
|
|
96
|
+
"tsdown": "^0.21.10",
|
|
92
97
|
"typescript": "^6.0.3",
|
|
93
98
|
"unplugin-unused": "^0.5.7",
|
|
94
|
-
"vitest": "^4.1.
|
|
99
|
+
"vitest": "^4.1.5",
|
|
95
100
|
"vue-eslint-parser": "^10.4.0"
|
|
96
101
|
},
|
|
97
102
|
"pnpm": {
|
package/src/vue.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TypedFlatConfigItem } from '@antfu/eslint-config';
|
|
2
|
+
import kikiutilsEslintPluginVue from '@kikiutils/eslint-plugin-vue';
|
|
2
3
|
import betteTailwindcss from 'eslint-plugin-better-tailwindcss';
|
|
3
4
|
// @ts-expect-error No declare file.
|
|
4
5
|
import promise from 'eslint-plugin-promise';
|
|
@@ -9,11 +10,16 @@ export function createVueConfig(environment: 'bun' | 'node' = 'node'): TypedFlat
|
|
|
9
10
|
return {
|
|
10
11
|
files: ['**/*.vue'],
|
|
11
12
|
plugins: {
|
|
13
|
+
'@kikiutils/vue': kikiutilsEslintPluginVue,
|
|
12
14
|
'better-tailwindcss': betteTailwindcss,
|
|
13
15
|
promise,
|
|
14
16
|
},
|
|
15
17
|
rules: {
|
|
16
18
|
...createBaseRules(environment),
|
|
19
|
+
'@kikiutils/vue/attributes-order': [
|
|
20
|
+
'error',
|
|
21
|
+
{ alphabeticalWithinGroup: true },
|
|
22
|
+
],
|
|
17
23
|
'better-tailwindcss/enforce-consistent-class-order': 'error',
|
|
18
24
|
'better-tailwindcss/enforce-consistent-important-position': 'error',
|
|
19
25
|
'better-tailwindcss/enforce-consistent-variable-syntax': 'error',
|
|
@@ -24,7 +30,7 @@ export function createVueConfig(environment: 'bun' | 'node' = 'node'): TypedFlat
|
|
|
24
30
|
'better-tailwindcss/no-unnecessary-whitespace': 'error',
|
|
25
31
|
'style/max-len': 'off',
|
|
26
32
|
'vue/attribute-hyphenation': 'error',
|
|
27
|
-
'vue/attributes-order': '
|
|
33
|
+
'vue/attributes-order': 'off',
|
|
28
34
|
'vue/block-order': [
|
|
29
35
|
'error',
|
|
30
36
|
{
|