@kazupon/eslint-config 0.26.0 → 0.27.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/index.js CHANGED
@@ -360,7 +360,7 @@ async function markdown(options = {}) {
360
360
  {
361
361
  name: "makrdown/ignore-lint-blocks-in-typescript",
362
362
  files: ["**/*.md/**"],
363
- languageOptions: { parserOptions: {} }
363
+ languageOptions: { parserOptions: { project: null } }
364
364
  },
365
365
  {
366
366
  name: "@kazupon/markdown",
@@ -657,6 +657,16 @@ async function vue(options = {}) {
657
657
  delete a11yRules.plugins;
658
658
  configs.push(a11yRules);
659
659
  }
660
+ if (options.i18n) {
661
+ const i18n = await loadPlugin("@intlify/eslint-plugin-vue-i18n");
662
+ configs.push(...i18n.configs["recommended"].map((config) => ({
663
+ ...config,
664
+ ignores: [GLOB_MARKDOWN]
665
+ })), {
666
+ name: "@intlify/vue-i18n/settings",
667
+ settings: { "vue-i18n": options.i18n }
668
+ });
669
+ }
660
670
  const customConfig = {
661
671
  name: "@kazupon/vue",
662
672
  files: [GLOB_VUE],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kazupon/eslint-config",
3
3
  "description": "ESLint config for @kazupon",
4
- "version": "0.26.0",
4
+ "version": "0.27.0",
5
5
  "author": {
6
6
  "email": "kawakazu80@gmail.com",
7
7
  "name": "kazuya kawaguchi"
@@ -57,8 +57,9 @@
57
57
  "globals": "^16.0.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@eslint/css": ">=0.4.0",
60
+ "@eslint/css": ">=0.5.0",
61
61
  "@eslint/markdown": ">=6.1.0",
62
+ "@intlify/eslint-plugin-vue-i18n": ">=4.0.0",
62
63
  "@vitest/eslint-plugin": ">=1.0.0",
63
64
  "eslint": ">=8.56.0 || >=9.0.0",
64
65
  "eslint-config-prettier": ">=9.1.0",
@@ -91,6 +92,9 @@
91
92
  "@eslint/markdown": {
92
93
  "optional": true
93
94
  },
95
+ "@intlify/eslint-plugin-vue-i18n": {
96
+ "optional": true
97
+ },
94
98
  "@vitest/eslint-plugin": {
95
99
  "optional": true
96
100
  },
@@ -162,8 +166,9 @@
162
166
  }
163
167
  },
164
168
  "devDependencies": {
165
- "@eslint/css": "^0.5.0",
169
+ "@eslint/css": "^0.6.0",
166
170
  "@eslint/markdown": "^6.3.0",
171
+ "@intlify/eslint-plugin-vue-i18n": "^4.0.1",
167
172
  "@kazupon/prettier-config": "^0.1.1",
168
173
  "@types/eslint": "^9.6.1",
169
174
  "@types/node": "^22.13.11",
@@ -183,9 +188,9 @@
183
188
  "eslint-plugin-regexp": "^2.7.0",
184
189
  "eslint-plugin-svelte": "^2.46.1",
185
190
  "eslint-plugin-toml": "^0.12.0",
186
- "eslint-plugin-unicorn": "^57.0.0",
191
+ "eslint-plugin-unicorn": "^58.0.0",
187
192
  "eslint-plugin-unused-imports": "^4.1.4",
188
- "eslint-plugin-vue": "^9.33.0",
193
+ "eslint-plugin-vue": "^10.0.0",
189
194
  "eslint-plugin-vue-composable": "^1.0.0",
190
195
  "eslint-plugin-vue-scoped-css": "^2.9.0",
191
196
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
@@ -196,7 +201,7 @@
196
201
  "knip": "^5.46.0",
197
202
  "lint-staged": "^15.5.0",
198
203
  "prettier": "^3.5.3",
199
- "svelte": "^4.2.19",
204
+ "svelte": "^5.0.0",
200
205
  "tsdown": "^0.6.9",
201
206
  "typescript": "^5.8.2",
202
207
  "typescript-eslint": "^8.27.0",