@rotki/eslint-config 4.2.1 → 4.3.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.d.ts CHANGED
@@ -14592,6 +14592,10 @@ interface OptionsVueI18n extends OptionsOverrides {
14592
14592
  * Optional configuration for @intlify/vue-i18n/no-raw-text rule
14593
14593
  */
14594
14594
  noRawTextIgnores?: VueI18nNoRawTextIgnores;
14595
+ /**
14596
+ * Specifies the configuration mode for @intlify/vue-i18n/no-unused-keys.
14597
+ */
14598
+ enableNoUnusedKeys?: 'always' | 'ci' | 'never';
14595
14599
  }
14596
14600
  interface OptionsOverrides {
14597
14601
  overrides?: TypedFlatConfigItem['rules'];
package/dist/index.js CHANGED
@@ -185271,7 +185271,7 @@ async function vue(options = {}) {
185271
185271
  //#endregion
185272
185272
  //#region src/configs/vue-i18n.ts
185273
185273
  async function vueI18n(options = {}) {
185274
- const { files = [GLOB_TS, GLOB_VUE], ignores: ignores$1 = [], isInEditor = false, localesDirectory = "locales", noRawTextIgnores = {
185274
+ const { enableNoUnusedKeys = "never", files = [GLOB_TS, GLOB_VUE], ignores: ignores$1 = [], isInEditor = false, localesDirectory = "locales", noRawTextIgnores = {
185275
185275
  nodes: [
185276
185276
  "md-icon",
185277
185277
  "v-icon",
@@ -185325,11 +185325,11 @@ async function vueI18n(options = {}) {
185325
185325
  ignorePattern: noRawTextIgnores.pattern,
185326
185326
  ignoreText: noRawTextIgnores.text
185327
185327
  }],
185328
- "@intlify/vue-i18n/no-unused-keys": ["error", {
185328
+ ...enableNoUnusedKeys === "always" || enableNoUnusedKeys === "ci" && process$1.env.CI ? { "@intlify/vue-i18n/no-unused-keys": ["error", {
185329
185329
  extensions: [".ts", ".vue"],
185330
185330
  ignores: ignores$1,
185331
185331
  src: path.join(".", src)
185332
- }],
185332
+ }] } : {},
185333
185333
  ...overrides
185334
185334
  },
185335
185335
  settings: { "vue-i18n": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rotki/eslint-config",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0",
6
6
  "bugs": {
@@ -95,7 +95,7 @@
95
95
  "tsdown": "0.12.9",
96
96
  "tsx": "4.20.3",
97
97
  "typescript": "5.8.2",
98
- "@rotki/eslint-config": "4.2.1"
98
+ "@rotki/eslint-config": "4.3.0"
99
99
  },
100
100
  "engines": {
101
101
  "node": ">=22 <23",