@kikiutils/eslint-config 7.0.3 → 8.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 +11 -11
- package/dist/vue.js.map +1 -1
- package/package.json +31 -11
- package/src/vue.ts +10 -12
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,28 +1,28 @@
|
|
|
1
1
|
import { createBaseRules } from "./base.js";
|
|
2
2
|
import promise from "eslint-plugin-promise";
|
|
3
|
-
import kikiutilsTailwindcss from "@kikiutils/eslint-plugin-tailwindcss";
|
|
4
3
|
import kikiutilsEslintPluginVue from "@kikiutils/eslint-plugin-vue";
|
|
5
|
-
import
|
|
4
|
+
import betteTailwindcss from "eslint-plugin-better-tailwindcss";
|
|
6
5
|
//#region src/vue.ts
|
|
7
6
|
function createVueConfig(environment = "node") {
|
|
8
7
|
return {
|
|
9
8
|
files: ["**/*.vue"],
|
|
10
9
|
plugins: {
|
|
11
|
-
"@kikiutils/tailwindcss": kikiutilsTailwindcss,
|
|
12
10
|
"@kikiutils/vue": kikiutilsEslintPluginVue,
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
"better-tailwindcss": betteTailwindcss,
|
|
12
|
+
promise
|
|
15
13
|
},
|
|
16
14
|
rules: {
|
|
17
15
|
...createBaseRules(environment),
|
|
18
|
-
"@kikiutils/tailwindcss/classnames-order": "error",
|
|
19
16
|
"@kikiutils/vue/attributes-order": ["error", { alphabetical: true }],
|
|
20
|
-
"
|
|
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",
|
|
21
25
|
"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
26
|
"vue/attribute-hyphenation": "error",
|
|
27
27
|
"vue/attributes-order": "off",
|
|
28
28
|
"vue/block-order": ["error", { order: [
|
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 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 { alphabetical: 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,cAAc,MAAM,CACzB;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": "
|
|
4
|
+
"version": "8.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,14 +36,21 @@
|
|
|
36
36
|
"typecheck": "tsc -b --noEmit"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@
|
|
39
|
+
"@eslint/css": "^1.1.0",
|
|
40
|
+
"@html-eslint/parser": "^0.59.0",
|
|
40
41
|
"@kikiutils/eslint-plugin-vue": "^10.2.2",
|
|
41
42
|
"eslint": ">= 9.0.0",
|
|
43
|
+
"eslint-plugin-better-tailwindcss": "^4.4.0",
|
|
42
44
|
"eslint-plugin-format": ">= 1.0.0",
|
|
43
|
-
"
|
|
45
|
+
"tailwind-csstree": "^0.3.1",
|
|
46
|
+
"tailwindcss": ">= 3.0.0",
|
|
47
|
+
"vue-eslint-parser": "^10.4.0"
|
|
44
48
|
},
|
|
45
49
|
"peerDependenciesMeta": {
|
|
46
|
-
"@
|
|
50
|
+
"@eslint/css": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"@html-eslint/parser": {
|
|
47
54
|
"optional": true
|
|
48
55
|
},
|
|
49
56
|
"@kikiutils/eslint-plugin-vue": {
|
|
@@ -52,32 +59,45 @@
|
|
|
52
59
|
"eslint": {
|
|
53
60
|
"optional": true
|
|
54
61
|
},
|
|
62
|
+
"eslint-plugin-better-tailwindcss": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
55
65
|
"eslint-plugin-format": {
|
|
56
66
|
"optional": true
|
|
57
67
|
},
|
|
58
|
-
"
|
|
68
|
+
"tailwind-csstree": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"tailwindcss": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"vue-eslint-parser": {
|
|
59
75
|
"optional": true
|
|
60
76
|
}
|
|
61
77
|
},
|
|
62
78
|
"dependencies": {
|
|
63
|
-
"@antfu/eslint-config": "^8.
|
|
79
|
+
"@antfu/eslint-config": "^8.2.0",
|
|
64
80
|
"eslint-plugin-promise": "^7.2.1"
|
|
65
81
|
},
|
|
66
82
|
"devDependencies": {
|
|
67
|
-
"@
|
|
83
|
+
"@eslint/css": "^1.1.0",
|
|
84
|
+
"@html-eslint/parser": "^0.59.0",
|
|
68
85
|
"@kikiutils/eslint-plugin-vue": "^10.2.2",
|
|
69
86
|
"@kikiutils/tsconfigs": "^6.0.0",
|
|
70
|
-
"@types/node": "^25.
|
|
87
|
+
"@types/node": "^25.6.0",
|
|
71
88
|
"@vitest/coverage-v8": "^4.1.4",
|
|
72
89
|
"changelogen": "^0.6.2",
|
|
90
|
+
"eslint-plugin-better-tailwindcss": "^4.4.1",
|
|
73
91
|
"eslint-plugin-format": "^2.0.1",
|
|
74
|
-
"
|
|
75
|
-
"knip": "^6.3.1",
|
|
92
|
+
"knip": "^6.4.1",
|
|
76
93
|
"publint": "^0.3.18",
|
|
94
|
+
"tailwind-csstree": "^0.3.1",
|
|
95
|
+
"tailwindcss": "^4.2.2",
|
|
77
96
|
"tsdown": "^0.21.7",
|
|
78
97
|
"typescript": "^6.0.2",
|
|
79
98
|
"unplugin-unused": "^0.5.7",
|
|
80
|
-
"vitest": "^4.1.4"
|
|
99
|
+
"vitest": "^4.1.4",
|
|
100
|
+
"vue-eslint-parser": "^10.4.0"
|
|
81
101
|
},
|
|
82
102
|
"pnpm": {
|
|
83
103
|
"onlyBuiltDependencies": [
|
package/src/vue.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { TypedFlatConfigItem } from '@antfu/eslint-config';
|
|
2
|
-
// @ts-expect-error No declare file.
|
|
3
|
-
import kikiutilsTailwindcss from '@kikiutils/eslint-plugin-tailwindcss';
|
|
4
2
|
import kikiutilsEslintPluginVue from '@kikiutils/eslint-plugin-vue';
|
|
3
|
+
import betteTailwindcss from 'eslint-plugin-better-tailwindcss';
|
|
5
4
|
// @ts-expect-error No declare file.
|
|
6
5
|
import promise from 'eslint-plugin-promise';
|
|
7
|
-
// @ts-expect-error No declare file.
|
|
8
|
-
import tailwindcss from 'eslint-plugin-tailwindcss';
|
|
9
6
|
|
|
10
7
|
import { createBaseRules } from './base';
|
|
11
8
|
|
|
@@ -13,24 +10,25 @@ export function createVueConfig(environment: 'bun' | 'node' = 'node'): TypedFlat
|
|
|
13
10
|
return {
|
|
14
11
|
files: ['**/*.vue'],
|
|
15
12
|
plugins: {
|
|
16
|
-
'@kikiutils/tailwindcss': kikiutilsTailwindcss,
|
|
17
13
|
'@kikiutils/vue': kikiutilsEslintPluginVue,
|
|
14
|
+
'better-tailwindcss': betteTailwindcss,
|
|
18
15
|
promise,
|
|
19
|
-
tailwindcss,
|
|
20
16
|
},
|
|
21
17
|
rules: {
|
|
22
18
|
...createBaseRules(environment),
|
|
23
|
-
'@kikiutils/tailwindcss/classnames-order': 'error',
|
|
24
19
|
'@kikiutils/vue/attributes-order': [
|
|
25
20
|
'error',
|
|
26
21
|
{ alphabetical: true },
|
|
27
22
|
],
|
|
28
|
-
'
|
|
23
|
+
'better-tailwindcss/enforce-consistent-class-order': 'error',
|
|
24
|
+
'better-tailwindcss/enforce-consistent-important-position': 'error',
|
|
25
|
+
'better-tailwindcss/enforce-consistent-variable-syntax': 'error',
|
|
26
|
+
'better-tailwindcss/enforce-consistent-variant-order': 'error',
|
|
27
|
+
'better-tailwindcss/enforce-shorthand-classes': 'error',
|
|
28
|
+
'better-tailwindcss/no-deprecated-classes': 'warn',
|
|
29
|
+
'better-tailwindcss/no-duplicate-classes': 'error',
|
|
30
|
+
'better-tailwindcss/no-unnecessary-whitespace': 'error',
|
|
29
31
|
'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
32
|
'vue/attribute-hyphenation': 'error',
|
|
35
33
|
'vue/attributes-order': 'off',
|
|
36
34
|
'vue/block-order': [
|