@open-xchange/linter-presets 1.30.1 → 1.30.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.30.3` – 2026-Sep-10
4
+
5
+ - changed: (ESLint) switch from rule `react-hooks/immutability` to `@eslint-react/immutability`
6
+ - chore: bump dependencies
7
+
8
+ ## `1.30.2` – 2026-Sep-06
9
+
10
+ - fixed: remove useless peer dependencies
11
+
3
12
  ## `1.30.1` – 2026-Sep-03
4
13
 
5
14
  - fixed: (ESLint) re-enable rule `jest-dom/prefer-to-have-class`
package/README.md CHANGED
@@ -18,8 +18,14 @@ export default defineConfig(
18
18
  { /* config options */ },
19
19
 
20
20
  // add environments
21
- env.browser({ files: ['src/**/*.js'], /* ... */ }),
22
- env.vitest({ files: ['test/**/*.js'], /* ... */ }),
21
+ env.browser({
22
+ files: ['src/**/*.js'],
23
+ /* ... */
24
+ }),
25
+ env.vitest({
26
+ files: ['test/**/*.js'],
27
+ /* ... */
28
+ }),
23
29
 
24
30
  // add custom configurations
25
31
  { /* ... */ },
@@ -335,7 +335,7 @@ declare function node(envOptions: EnvNodeOptions): ConfigArg;
335
335
  */
336
336
  interface EnvBrowserOptions extends EnvRestrictedOptions {}
337
337
  /**
338
- * Creates configuration objects with global symbols and linter rules for for
338
+ * Creates configuration objects with global symbols and linter rules for
339
339
  * browser modules.
340
340
  *
341
341
  * Wraps the following packages:
@@ -627,7 +627,7 @@ declare function decorators(envOptions: EnvBaseOptions): ConfigArg;
627
627
  /**
628
628
  * Configuration options for linting the entire project with ESLint.
629
629
  */
630
- interface ProjectOptions {
630
+ export interface ProjectOptions {
631
631
  /**
632
632
  * The URL of the project root containing the ESLint configuration file.
633
633
  * Should usually be set to `import.meta.url`.
@@ -666,7 +666,7 @@ interface ProjectOptions {
666
666
  /**
667
667
  * A collection with all available environment presets.
668
668
  */
669
- declare const env: {
669
+ export declare const env: {
670
670
  readonly node: typeof node;
671
671
  readonly browser: typeof browser;
672
672
  readonly jest: typeof jest;
@@ -692,7 +692,7 @@ declare const env: {
692
692
  * The resulting ESLint configuration array that must be returned from the
693
693
  * `eslint.config.*` file.
694
694
  */
695
- declare function defineConfig(options: ProjectOptions, ...configs: Array<ConfigArg | ((resolver: PathResolver) => ConfigArg)>): ConfigObject[];
695
+ export declare function defineConfig(options: ProjectOptions, ...configs: Array<ConfigArg | ((resolver: PathResolver) => ConfigArg)>): ConfigObject[];
696
696
  //#endregion
697
- export { type ConfigObject, type LanguageOptions, type PackagesOptions, ProjectOptions, type RulesConfig, type StylisticOptions, type VueOptions, defineConfig, env };
697
+ export type { ConfigObject, LanguageOptions, PackagesOptions, RulesConfig, StylisticOptions, VueOptions };
698
698
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/utils/resolver.ts","../../src/utils/utils.ts","../../src/eslint/shared/env-utils.ts","../../src/eslint/core/vue.ts","../../src/eslint/shared/restricted.ts","../../src/eslint/env/node.ts","../../src/eslint/env/browser.ts","../../src/eslint/shared/unittest.ts","../../src/eslint/env/jest.ts","../../src/eslint/env/vitest.ts","../../src/eslint/env/codecept.ts","../../src/eslint/env/react.ts","../../src/eslint/env/eslint.ts","../../src/eslint/shared/rule-utils.ts","../../src/eslint/rules/project/noInvalidModules.ts","../../src/eslint/rules/project/noInvalidHierarchy.ts","../../src/eslint/env/project.ts","../../src/eslint/env/tsconfig.ts","../../src/eslint/env/decorators.ts","../../src/eslint/index.ts"],"mappings":";;;;;;;;;;cASa;;EAKC,YAAA;;;;;MASR;;;;;;;;;;EAaJ,KAAK;;;;KC7BK,aAAa,KAAK,+BAA+B,cAAc,aAAa;;;KCK5E,SAAS,iBAAe,oBAAoB,OAAO,SAAS,SAAS,WAAW;KAEhF,YAAY,aAAa;;;;UAOpB;;;;;;EAOf,cAAc,OAAO;;;;;;;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;;;;;;;EASA;;;;;;EAOA;;;;;;;;;;;;;;;;;iBAoBsB,MAAM,YAAY,kBAAkB;;;;;;UCnD3C,yBAAyB;;;;;;;;;;;;;iBAgBlB,OAAO,YAAY,mBAAmB;;;;;;UCT7C;;;;EAKf,QAAQ;;;;;;;UCZO;;;;EAKf;;;;;;;;UCJe;;;;EAKf;;;;;EAMA;;;;;;;;;;EAWA;;KAKU,gCAAgC,eAAe;;;;;;UC1B1C,0BAA0B;;;;EAKzC,QAAQ;;;;EAKR,WAAW;;;;EAKX,YAAY;;;;;;;;;;;iBAcU,QAAQ,YAAY,oBAAoB;;;;;;UCjC/C,2BAA2B;;;;EAK1C;;;;;;;;;;;iBAcsB,SAAS,YAAY,qBAAqB;;;;;;;;;;;;;;;;iBCA1C,WAAW,YAAY,iBAAiB;;;;;;UCc/C;;;;;EAMf;;;;EAKA;;;;;EAMA;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX,YAAY;;;;EAKZ,MAAM;;;;EAKN,QAAQ;;;;;cAQG;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BG,aAAa,SAAS,mBAAmB,SAAS,MAAM,cAAc,UAAU,iBAAiB,cAAc"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/utils/resolver.ts","../../src/utils/utils.ts","../../src/eslint/shared/env-utils.ts","../../src/eslint/core/vue.ts","../../src/eslint/shared/restricted.ts","../../src/eslint/env/node.ts","../../src/eslint/env/browser.ts","../../src/eslint/shared/unittest.ts","../../src/eslint/env/jest.ts","../../src/eslint/env/vitest.ts","../../src/eslint/env/codecept.ts","../../src/eslint/env/react.ts","../../src/eslint/env/eslint.ts","../../src/eslint/shared/rule-utils.ts","../../src/eslint/rules/project/noInvalidModules.ts","../../src/eslint/rules/project/noInvalidHierarchy.ts","../../src/eslint/env/project.ts","../../src/eslint/env/tsconfig.ts","../../src/eslint/env/decorators.ts","../../src/eslint/index.ts"],"mappings":";;;;;;;;;;cASa;;EAKC,YAAA;;;;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AAY,iBAAiB;;;;;;UCpBzC,yBAAyB;;;;;;;;;;;;;;;;;iBAoBlB,OAAO,YAAY,mBAAmB;;;;;;UCnB7C,2BAA2B;;;;;;;;;;;;;;;iBAkBpB,SAAS,YAAY,qBAAqB;;;;;;UCXjD,wBAAwB;;;;;;EAOvC;;;;;;;;EASA;;;;;;EAOA;;;;;;;;;;;;;;;;;iBAoBsB,MAAM,YAAY,kBAAkB;;;;;;UCnD3C,yBAAyB;;;;;;;;;;;;;iBAgBlB,OAAO,YAAY,mBAAmB;;;;;;UCT7C;;;;EAKf,QAAQ;;;;;;;UCZO;;;;EAKf;;;;;;;;UCJe;;;;EAKf;;;;;EAMA;;;;;;;;;;EAWA;;KAKU,gCAAgC,eAAe;;;;;;UC1B1C,0BAA0B;;;;EAKzC,QAAQ;;;;EAKR,WAAW;;;;EAKX,YAAY;;;;;;;;;;;iBAcU,QAAQ,YAAY,oBAAoB;;;;;;UCjC/C,2BAA2B;;;;EAK1C;;;;;;;;;;;iBAcsB,SAAS,YAAY,qBAAqB;;;;;;;;;;;;;;;;iBCA1C,WAAW,YAAY,iBAAiB;;;;;;iBCc/C;;;;;EAMf;;;;EAKA;;;;;EAMA;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX,YAAY;;;;EAKZ,MAAM;;;;EAKN,QAAQ;;;;;qBAQG;;;;;;;;;;;;;;;;;;;;;;;;;;wBA6BG,aAAa,SAAS,mBAAmB,SAAS,MAAM,cAAc,UAAU,iBAAiB,cAAc"}
@@ -262,7 +262,7 @@ function convertRuleWarningsToErrors(config) {
262
262
  * name in `settings`). Missing entries will be created on demand.
263
263
  *
264
264
  * @param props
265
- * The settings properties to me merged into the plugin settings.
265
+ * The settings properties to be merged into the plugin settings.
266
266
  *
267
267
  * @returns
268
268
  * The extended settings object.
@@ -674,6 +674,7 @@ function vue(rootDir, stylisticConfig, vueOptions) {
674
674
  "vue/no-implicit-coercion": ["error", NO_IMPLICIT_COERCION_OPTIONS],
675
675
  "vue/no-irregular-whitespace": "error",
676
676
  "vue/no-literals-in-template": "error",
677
+ "vue/no-shadow-native-events": "error",
677
678
  "vue/no-sparse-arrays": "error",
678
679
  "vue/no-template-target-blank": "error",
679
680
  "vue/no-undef-directives": ["error", { ignore: vueOptions?.globalDirectives }],
@@ -1232,7 +1233,7 @@ const RESTRICTED_GLOBALS = AMBIGUOUS_BROWSER_TYPES.map((name) => {
1232
1233
  };
1233
1234
  });
1234
1235
  /**
1235
- * Creates configuration objects with global symbols and linter rules for for
1236
+ * Creates configuration objects with global symbols and linter rules for
1236
1237
  * browser modules.
1237
1238
  *
1238
1239
  * Wraps the following packages:
@@ -1839,6 +1840,7 @@ function react(envOptions) {
1839
1840
  settings
1840
1841
  }, {
1841
1842
  "@eslint-react/dom-no-unknown-property": "error",
1843
+ "@eslint-react/immutability": "error",
1842
1844
  "@eslint-react/jsx-no-leaked-dollar": "error",
1843
1845
  "@eslint-react/jsx-no-useless-fragment": ["error", { allowEmptyFragment: true }],
1844
1846
  "@eslint-react/naming-convention-context-name": "error",
@@ -1849,6 +1851,7 @@ function react(envOptions) {
1849
1851
  createConfig("env.react.recommended", envOptions, { extends: [reactKit().use(jsxShorthandBoolean).use(preferDestructuringAssignment).getConfig()] }),
1850
1852
  createConfig("env.react.react-hooks", envOptions, convertRuleWarningsToErrors(reactHooksPlugin.configs.flat.recommended), {
1851
1853
  "react-hooks/exhaustive-deps": "off",
1854
+ "react-hooks/immutability": "off",
1852
1855
  "react-hooks/refs": "off",
1853
1856
  "react-hooks/rules-of-hooks": "off",
1854
1857
  "react-hooks/set-state-in-effect": "off",