@ladamczyk/qoq-eslint-v9-ts-react 5.2.5 → 5.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/bin/bin.js +1 -1
- package/lib/index.mjs +21 -28
- package/lib/src/bin.d.ts +2 -0
- package/lib/src/index.spec.d.ts +1 -0
- package/package.json +10 -11
package/bin/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
(0,require("@ladamczyk/qoq-eslint-v9-js/tools").executeInspector)(__dirname);
|
package/lib/index.mjs
CHANGED
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
import reactPlugin from
|
|
2
|
-
import {
|
|
3
|
-
import { baseConfig as baseConfig$1, disabledRules
|
|
4
|
-
import { baseConfig as baseConfig$2 } from
|
|
5
|
-
import { objectMergeRight } from
|
|
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
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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 };
|
package/lib/src/bin.d.ts
ADDED
|
@@ -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.
|
|
3
|
+
"version": "5.3.0",
|
|
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
|
|
42
|
-
"inspect": "node ./bin/bin.
|
|
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.
|
|
47
|
-
"@ladamczyk/qoq-eslint-v9-js-react": "^5.
|
|
48
|
-
"@ladamczyk/qoq-eslint-v9-ts": "^5.
|
|
49
|
-
"@ladamczyk/qoq-utils": "^5.
|
|
46
|
+
"@eslint-react/eslint-plugin": "5.18.2",
|
|
47
|
+
"@ladamczyk/qoq-eslint-v9-js-react": "^5.3.0",
|
|
48
|
+
"@ladamczyk/qoq-eslint-v9-ts": "^5.3.0",
|
|
49
|
+
"@ladamczyk/qoq-utils": "^5.3.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@rollup/plugin-typescript": "12.3.0",
|
|
53
52
|
"rimraf": "6.1.3",
|
|
54
|
-
"
|
|
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 <
|
|
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": "
|
|
66
|
+
"gitHead": "ce1c2c62d03399619f4265f22826498bda802c8c"
|
|
68
67
|
}
|