@kikiutils/eslint-config 8.0.0 → 9.0.1

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 CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"vue.d.ts","names":[],"sources":["../src/vue.ts"],"mappings":";;;iBAQgB,eAAA,CAAgB,WAAA,oBAAuC,mBAAA"}
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,19 +1,16 @@
1
1
  import { createBaseRules } from "./base.js";
2
2
  import promise from "eslint-plugin-promise";
3
- import kikiutilsEslintPluginVue from "@kikiutils/eslint-plugin-vue";
4
3
  import betteTailwindcss from "eslint-plugin-better-tailwindcss";
5
4
  //#region src/vue.ts
6
5
  function createVueConfig(environment = "node") {
7
6
  return {
8
7
  files: ["**/*.vue"],
9
8
  plugins: {
10
- "@kikiutils/vue": kikiutilsEslintPluginVue,
11
9
  "better-tailwindcss": betteTailwindcss,
12
10
  promise
13
11
  },
14
12
  rules: {
15
13
  ...createBaseRules(environment),
16
- "@kikiutils/vue/attributes-order": ["error", { alphabetical: true }],
17
14
  "better-tailwindcss/enforce-consistent-class-order": "error",
18
15
  "better-tailwindcss/enforce-consistent-important-position": "error",
19
16
  "better-tailwindcss/enforce-consistent-variable-syntax": "error",
@@ -24,7 +21,7 @@ function createVueConfig(environment = "node") {
24
21
  "better-tailwindcss/no-unnecessary-whitespace": "error",
25
22
  "style/max-len": "off",
26
23
  "vue/attribute-hyphenation": "error",
27
- "vue/attributes-order": "off",
24
+ "vue/attributes-order": "error",
28
25
  "vue/block-order": ["error", { order: [
29
26
  "template",
30
27
  "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 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"}
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': 'error',\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;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": "8.0.0",
4
+ "version": "9.0.1",
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",
@@ -38,7 +38,6 @@
38
38
  "peerDependencies": {
39
39
  "@eslint/css": "^1.1.0",
40
40
  "@html-eslint/parser": "^0.59.0",
41
- "@kikiutils/eslint-plugin-vue": "^10.2.2",
42
41
  "eslint": ">= 9.0.0",
43
42
  "eslint-plugin-better-tailwindcss": "^4.4.0",
44
43
  "eslint-plugin-format": ">= 1.0.0",
@@ -53,9 +52,6 @@
53
52
  "@html-eslint/parser": {
54
53
  "optional": true
55
54
  },
56
- "@kikiutils/eslint-plugin-vue": {
57
- "optional": true
58
- },
59
55
  "eslint": {
60
56
  "optional": true
61
57
  },
@@ -82,7 +78,6 @@
82
78
  "devDependencies": {
83
79
  "@eslint/css": "^1.1.0",
84
80
  "@html-eslint/parser": "^0.59.0",
85
- "@kikiutils/eslint-plugin-vue": "^10.2.2",
86
81
  "@kikiutils/tsconfigs": "^6.0.0",
87
82
  "@types/node": "^25.6.0",
88
83
  "@vitest/coverage-v8": "^4.1.4",
@@ -93,8 +88,8 @@
93
88
  "publint": "^0.3.18",
94
89
  "tailwind-csstree": "^0.3.1",
95
90
  "tailwindcss": "^4.2.2",
96
- "tsdown": "^0.21.7",
97
- "typescript": "^6.0.2",
91
+ "tsdown": "^0.21.9",
92
+ "typescript": "^6.0.3",
98
93
  "unplugin-unused": "^0.5.7",
99
94
  "vitest": "^4.1.4",
100
95
  "vue-eslint-parser": "^10.4.0"
package/src/vue.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type { TypedFlatConfigItem } from '@antfu/eslint-config';
2
- import kikiutilsEslintPluginVue from '@kikiutils/eslint-plugin-vue';
3
2
  import betteTailwindcss from 'eslint-plugin-better-tailwindcss';
4
3
  // @ts-expect-error No declare file.
5
4
  import promise from 'eslint-plugin-promise';
@@ -10,16 +9,11 @@ export function createVueConfig(environment: 'bun' | 'node' = 'node'): TypedFlat
10
9
  return {
11
10
  files: ['**/*.vue'],
12
11
  plugins: {
13
- '@kikiutils/vue': kikiutilsEslintPluginVue,
14
12
  'better-tailwindcss': betteTailwindcss,
15
13
  promise,
16
14
  },
17
15
  rules: {
18
16
  ...createBaseRules(environment),
19
- '@kikiutils/vue/attributes-order': [
20
- 'error',
21
- { alphabetical: true },
22
- ],
23
17
  'better-tailwindcss/enforce-consistent-class-order': 'error',
24
18
  'better-tailwindcss/enforce-consistent-important-position': 'error',
25
19
  'better-tailwindcss/enforce-consistent-variable-syntax': 'error',
@@ -30,7 +24,7 @@ export function createVueConfig(environment: 'bun' | 'node' = 'node'): TypedFlat
30
24
  'better-tailwindcss/no-unnecessary-whitespace': 'error',
31
25
  'style/max-len': 'off',
32
26
  'vue/attribute-hyphenation': 'error',
33
- 'vue/attributes-order': 'off',
27
+ 'vue/attributes-order': 'error',
34
28
  'vue/block-order': [
35
29
  'error',
36
30
  {