@ladamczyk/qoq-eslint-v9-ts-react 5.2.5 → 5.3.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/bin/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{executeInspector as o}from"@ladamczyk/qoq-eslint-v9-js/tools";o(__dirname);
2
+ (0,require("@ladamczyk/qoq-eslint-v9-js/tools").executeInspector)(__dirname);
package/lib/index.mjs CHANGED
@@ -1,33 +1,26 @@
1
- import reactPlugin from '@eslint-react/eslint-plugin';
2
- import { restoreSonarjsRules, REACT_ONLY_SONARJS_RULES } from '@ladamczyk/qoq-eslint-v9-js';
3
- import { baseConfig as baseConfig$1, disabledRules, NO_MULTI_COMP_RULE_NAME } from '@ladamczyk/qoq-eslint-v9-js-react';
4
- import { baseConfig as baseConfig$2 } from '@ladamczyk/qoq-eslint-v9-ts';
5
- import { objectMergeRight } from '@ladamczyk/qoq-utils';
6
-
1
+ import reactPlugin from "@eslint-react/eslint-plugin";
2
+ import { REACT_ONLY_SONARJS_RULES, restoreSonarjsRules } from "@ladamczyk/qoq-eslint-v9-js";
3
+ import { NO_MULTI_COMP_RULE_NAME, baseConfig as baseConfig$1, disabledRules } from "@ladamczyk/qoq-eslint-v9-js-react";
4
+ import { baseConfig as baseConfig$2 } from "@ladamczyk/qoq-eslint-v9-ts";
5
+ import { objectMergeRight } from "@ladamczyk/qoq-utils";
6
+ //#region src/index.ts
7
7
  const { plugins: jsReactBaseConfigPlugins, ...jsReactBaseConfigRest } = baseConfig$1;
8
8
  const { plugins: tsBaseConfigPlugins, ...tsBaseConfigRest } = baseConfig$2;
9
- // tsBaseConfigRest is merged in after jsReactBaseConfigRest and still carries the
10
- // React/JSX rules disabled (it's built from eslint-v9-js, not eslint-v9-js-react), so
11
- // its "off" wins the objectMergeRight merge unless re-restored here as the final override.
12
- // `no-hook-setter-in-body` is intentionally excluded: it flags the same pattern
13
- // (an unconditional state-setter call in a component's render body) as
14
- // `@eslint-react/set-state-in-render`, which already covers it more broadly.
15
- const restoredReactRules = restoreSonarjsRules(REACT_ONLY_SONARJS_RULES, [
16
- 'no-hook-setter-in-body',
17
- ]);
9
+ const restoredReactRules = restoreSonarjsRules(REACT_ONLY_SONARJS_RULES, ["no-hook-setter-in-body"]);
18
10
  const baseConfig = {
19
- ...objectMergeRight(jsReactBaseConfigRest, tsBaseConfigRest, {
20
- name: 'qoq-eslint-v9-ts-react',
21
- rules: {
22
- ...restoredReactRules,
23
- ...disabledRules,
24
- ...(reactPlugin.configs['recommended-typescript'].rules ?? {}),
25
- // Our custom rule lives in (and is registered by) `eslint-v9-js-react`;
26
- // re-assert it here so it survives the `recommended-typescript` merge.
27
- [`@eslint-react/${NO_MULTI_COMP_RULE_NAME}`]: 2,
28
- },
29
- }),
30
- plugins: { ...jsReactBaseConfigPlugins, ...tsBaseConfigPlugins },
11
+ ...objectMergeRight(jsReactBaseConfigRest, tsBaseConfigRest, {
12
+ name: "qoq-eslint-v9-ts-react",
13
+ rules: {
14
+ ...restoredReactRules,
15
+ ...disabledRules,
16
+ ...reactPlugin.configs["recommended-typescript"].rules ?? {},
17
+ [`@eslint-react/${NO_MULTI_COMP_RULE_NAME}`]: 2
18
+ }
19
+ }),
20
+ plugins: {
21
+ ...jsReactBaseConfigPlugins,
22
+ ...tsBaseConfigPlugins
23
+ }
31
24
  };
32
-
25
+ //#endregion
33
26
  export { baseConfig };
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ladamczyk/qoq-eslint-v9-ts-react",
3
- "version": "5.2.5",
3
+ "version": "5.3.1",
4
4
  "description": "Eslint flat config template for TS + React",
5
5
  "keywords": [
6
6
  "eslint TypeScript + React template",
@@ -38,25 +38,24 @@
38
38
  "AGENTS.md"
39
39
  ],
40
40
  "scripts": {
41
- "build": "rimraf ./lib && rollup -c rollup.config.js --silent && rimraf ./bin && rollup -c rollup.bin.js --silent",
42
- "inspect": "node ./bin/bin.cjs",
41
+ "build": "rimraf ./lib ./bin && rolldown -c && tsc --emitDeclarationOnly",
42
+ "inspect": "node ./bin/bin.js",
43
43
  "typecheck": "tsc --noEmit"
44
44
  },
45
45
  "dependencies": {
46
- "@eslint-react/eslint-plugin": "5.18.1",
47
- "@ladamczyk/qoq-eslint-v9-js-react": "^5.2.5",
48
- "@ladamczyk/qoq-eslint-v9-ts": "^5.2.5",
49
- "@ladamczyk/qoq-utils": "^5.2.5"
46
+ "@eslint-react/eslint-plugin": "5.18.3",
47
+ "@ladamczyk/qoq-eslint-v9-js-react": "^5.3.1",
48
+ "@ladamczyk/qoq-eslint-v9-ts": "^5.3.1",
49
+ "@ladamczyk/qoq-utils": "^5.3.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@rollup/plugin-typescript": "12.3.0",
53
52
  "rimraf": "6.1.3",
54
- "rollup": "4.62.4",
53
+ "rolldown": "1.2.3",
55
54
  "typescript": "6.0.3"
56
55
  },
57
56
  "peerDependencies": {
58
57
  "eslint": "^10.7.0",
59
- "typescript": ">=4.8.4 <7.0.0"
58
+ "typescript": ">=4.8.4 <6.1.0"
60
59
  },
61
60
  "engines": {
62
61
  "node": ">=22.15.0"
@@ -64,5 +63,5 @@
64
63
  "publishConfig": {
65
64
  "access": "public"
66
65
  },
67
- "gitHead": "e2d610b72a7d42542ab146c634dbb30862e7d781"
66
+ "gitHead": "57360d73edf56a1451eeb5bf3abfa3804cc67171"
68
67
  }