@component-hook/eslint-plugin 0.2.2-alpha.0 → 0.2.2-alpha.2

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Tzuyi
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Tzuyi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,120 +1,120 @@
1
- # @component-hook/eslint-plugin
2
-
3
- A opinionated ESLint config preset for JavaScript, TypeScript, Vue, and Prettier.
4
-
5
- <p>
6
- <a href="https://npm-stat.com/charts.html?package=@component-hook/eslint-plugin">
7
- <img src="https://img.shields.io/npm/dm/@component-hook/eslint-plugin.svg" alt="npm"/>
8
- </a>
9
- <a href="https://www.npmjs.com/package/@component-hook/eslint-plugin">
10
- <img src="https://img.shields.io/npm/v/@component-hook/eslint-plugin.svg" alt="npm"/>
11
- </a>
12
- </p>
13
-
14
- ## Features
15
-
16
- - Support `TypeScript`, `Vue` and `React` out-of-box.
17
- - Built-in `Markdown`, `Prettier`, `Sonarjs`, `Security`, `Playwright` and `Testing-library` configs can be referenced for respective needs.
18
- - Format with Prettier.
19
- - Ignores common files like `dist`, `node_modules`, `coverage`, and files in `.gitignore`.
20
- - Reasonable defaults, best practices, and just a few lines of configuration.
21
-
22
- ## Installation
23
-
24
- ```bash
25
- $ npm install @component-hook/eslint-plugin --save-dev
26
-
27
- # or use yarn
28
- $ yarn add @component-hook/eslint-plugin --dev
29
-
30
- # or use pnpm
31
- $ pnpm install @component-hook/eslint-plugin --save-dev
32
- ```
33
-
34
- Require ESLint >= 9.0.0
35
-
36
- ## Basic Usage
37
-
38
- ```js
39
- import componentHookPlugin from '@component-hook/eslint-plugin';
40
-
41
- export default [
42
- ...componentHookPlugin.configs.basic,
43
- ...componentHookPlugin.configs.vue,
44
- componentHookPlugin.configs.prettier,
45
- ...componentHookPlugin.configs.sonarjs,
46
- componentHookPlugin.configs.security,
47
- ...componentHookPlugin.configs.markdown,
48
- {
49
- files: ['**/__tests__/unit/**/*.test.[jt]s?(x)'],
50
- ...componentHookPlugin.configs['testing-library/vue'],
51
- },
52
- {
53
- files: ['**/__tests__/e2e/**/*.spec.[jt]s?(x)'],
54
- ...componentHookPlugin.configs.playwright,
55
- },
56
- // ...your custom config
57
- ];
58
- ```
59
-
60
- See [basic](./index.ts) and [ignores](./configs/ignores.ts) for more details.
61
-
62
- ## Presets Usage
63
-
64
- ```js
65
- import {
66
- reactPreset, // Includes basic, react, markdown, prettier, sonarjs, security configs
67
- } from '@component-hook/eslint-plugin';
68
-
69
- export default reactPreset;
70
- ```
71
-
72
- ```js
73
- import {
74
- vuePreset, // Includes basic, vue, markdown, prettier, sonarjs, security configs
75
- } from '@component-hook/eslint-plugin';
76
-
77
- export default vuePreset;
78
- ```
79
-
80
- ## Configs
81
-
82
- | Name | Type | Reference |
83
- | ----------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
84
- | basic | `Linter.Config[]` | `eslint-recommended`, `typescript-eslint`, `eslint-plugin-eslint-comments`, `eslint-plugin-import`, `eslint-plugin-unicorn`, `eslint-plugin-regexp` |
85
- | vue | `Linter.Config[]` | `eslint-plugin-vue`, `typescript-eslint` |
86
- | react | `Linter.Config[]` | `eslint-plugin-react/recommended`, `eslint-plugin-react-hooks/recommended`, `eslint-plugin-jsx-a11y/recommended` |
87
- | markdown | `Linter.Config[]` | `eslint-plugin-markdown/recommended` |
88
- | prettier | `Linter.Config` | `eslint-plugin-prettier/recommended`, `eslint-config-prettier` |
89
- | sonarjs | `Linter.Config[]` | `eslint-plugin-sonarjs/recommended` |
90
- | security | `Linter.Config` | `eslint-plugin-security/recommended` |
91
- | playwright | `Linter.Config` | `eslint-plugin-playwright/flat/recommended` |
92
- | testing-library/dom | `Linter.Config` | `eslint-plugin-testing-library/dom` |
93
- | testing-library/vue | `Linter.Config` | `eslint-plugin-testing-library/vue` |
94
- | testing-library/react | `Linter.Config` | `eslint-plugin-testing-library/react` |
95
- | testing-library/angular | `Linter.Config` | `eslint-plugin-testing-library/angular` |
96
- | testing-library/marko | `Linter.Config` | `eslint-plugin-testing-library/marko` |
97
-
98
- ## Reference eslint plugin
99
-
100
- - [eslint-recommended](https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js)
101
- - [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)
102
- - [eslint-plugin-eslint-comments](https://github.com/eslint-community/eslint-plugin-eslint-comments/blob/main/lib/configs/recommended.js)
103
- - [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
104
- - [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
105
- - [eslint-plugin-regexp/flat/recommended](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/configs/flat/recommended.ts)
106
- - [eslint-plugin-prettier/recommended](https://github.com/prettier/eslint-plugin-prettier/blob/master/recommended.js)
107
- - [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier/blob/main/index.js)
108
- - [eslint-plugin-react/recommended](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/configs/recommended.js)
109
- - [eslint-plugin-react-hooks/recommended](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/src/index.js)
110
- - [eslint-plugin-jsx-a11y/recommended](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/src/index.js)
111
- - [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue)
112
- - [eslint-plugin-markdown/recommended](https://github.com/eslint/markdown/blob/main/src/index.js)
113
- - [eslint-plugin-sonarjs/recommended](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/src/index.ts)
114
- - [eslint-plugin-security/recommended](https://github.com/eslint-community/eslint-plugin-security/blob/main/index.js)
115
- - [eslint-plugin-testing-library/dom](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/dom.ts)
116
- - [eslint-plugin-testing-library/vue](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/vue.ts)
117
- - [eslint-plugin-testing-library/react](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/react.ts)
118
- - [eslint-plugin-testing-library/angular](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/angular.ts)
119
- - [eslint-plugin-testing-library/marko](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/marko.ts)
120
- - [eslint-plugin-playwright/flat/recommended](https://github.com/playwright-community/eslint-plugin-playwright/blob/main/src/index.ts)
1
+ # @component-hook/eslint-plugin
2
+
3
+ A opinionated ESLint config preset for JavaScript, TypeScript, Vue, and Prettier.
4
+
5
+ <p>
6
+ <a href="https://npm-stat.com/charts.html?package=@component-hook/eslint-plugin">
7
+ <img src="https://img.shields.io/npm/dm/@component-hook/eslint-plugin.svg" alt="npm"/>
8
+ </a>
9
+ <a href="https://www.npmjs.com/package/@component-hook/eslint-plugin">
10
+ <img src="https://img.shields.io/npm/v/@component-hook/eslint-plugin.svg" alt="npm"/>
11
+ </a>
12
+ </p>
13
+
14
+ ## Features
15
+
16
+ - Support `TypeScript`, `Vue` and `React` out-of-box.
17
+ - Built-in `Markdown`, `Prettier`, `Sonarjs`, `Security`, `Playwright` and `Testing-library` configs can be referenced for respective needs.
18
+ - Format with Prettier.
19
+ - Ignores common files like `dist`, `node_modules`, `coverage`, and files in `.gitignore`.
20
+ - Reasonable defaults, best practices, and just a few lines of configuration.
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ $ npm install @component-hook/eslint-plugin --save-dev
26
+
27
+ # or use yarn
28
+ $ yarn add @component-hook/eslint-plugin --dev
29
+
30
+ # or use pnpm
31
+ $ pnpm install @component-hook/eslint-plugin --save-dev
32
+ ```
33
+
34
+ Require ESLint >= 9.0.0
35
+
36
+ ## Basic Usage
37
+
38
+ ```js
39
+ import componentHookPlugin from '@component-hook/eslint-plugin';
40
+
41
+ export default [
42
+ ...componentHookPlugin.configs.basic,
43
+ ...componentHookPlugin.configs.vue,
44
+ componentHookPlugin.configs.prettier,
45
+ ...componentHookPlugin.configs.sonarjs,
46
+ componentHookPlugin.configs.security,
47
+ ...componentHookPlugin.configs.markdown,
48
+ {
49
+ files: ['**/__tests__/unit/**/*.test.[jt]s?(x)'],
50
+ ...componentHookPlugin.configs['testing-library/vue'],
51
+ },
52
+ {
53
+ files: ['**/__tests__/e2e/**/*.spec.[jt]s?(x)'],
54
+ ...componentHookPlugin.configs.playwright,
55
+ },
56
+ // ...your custom config
57
+ ];
58
+ ```
59
+
60
+ See [basic](./index.ts) and [ignores](./configs/ignores.ts) for more details.
61
+
62
+ ## Presets Usage
63
+
64
+ ```js
65
+ import {
66
+ reactPreset, // Includes basic, react, markdown, prettier, sonarjs, security configs
67
+ } from '@component-hook/eslint-plugin';
68
+
69
+ export default reactPreset;
70
+ ```
71
+
72
+ ```js
73
+ import {
74
+ vuePreset, // Includes basic, vue, markdown, prettier, sonarjs, security configs
75
+ } from '@component-hook/eslint-plugin';
76
+
77
+ export default vuePreset;
78
+ ```
79
+
80
+ ## Configs
81
+
82
+ | Name | Type | Reference |
83
+ | ----------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
84
+ | basic | `Linter.Config[]` | `eslint-recommended`, `typescript-eslint`, `eslint-plugin-eslint-comments`, `eslint-plugin-import`, `eslint-plugin-unicorn`, `eslint-plugin-regexp` |
85
+ | vue | `Linter.Config[]` | `eslint-plugin-vue`, `typescript-eslint` |
86
+ | react | `Linter.Config[]` | `eslint-plugin-react/recommended`, `eslint-plugin-react-hooks/recommended`, `eslint-plugin-jsx-a11y/recommended` |
87
+ | markdown | `Linter.Config[]` | `eslint-plugin-markdown/recommended` |
88
+ | prettier | `Linter.Config` | `eslint-plugin-prettier/recommended`, `eslint-config-prettier` |
89
+ | sonarjs | `Linter.Config[]` | `eslint-plugin-sonarjs/recommended` |
90
+ | security | `Linter.Config` | `eslint-plugin-security/recommended` |
91
+ | playwright | `Linter.Config` | `eslint-plugin-playwright/flat/recommended` |
92
+ | testing-library/dom | `Linter.Config` | `eslint-plugin-testing-library/dom` |
93
+ | testing-library/vue | `Linter.Config` | `eslint-plugin-testing-library/vue` |
94
+ | testing-library/react | `Linter.Config` | `eslint-plugin-testing-library/react` |
95
+ | testing-library/angular | `Linter.Config` | `eslint-plugin-testing-library/angular` |
96
+ | testing-library/marko | `Linter.Config` | `eslint-plugin-testing-library/marko` |
97
+
98
+ ## Reference eslint plugin
99
+
100
+ - [eslint-recommended](https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js)
101
+ - [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)
102
+ - [eslint-plugin-eslint-comments](https://github.com/eslint-community/eslint-plugin-eslint-comments/blob/main/lib/configs/recommended.js)
103
+ - [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
104
+ - [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
105
+ - [eslint-plugin-regexp/flat/recommended](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/configs/flat/recommended.ts)
106
+ - [eslint-plugin-prettier/recommended](https://github.com/prettier/eslint-plugin-prettier/blob/master/recommended.js)
107
+ - [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier/blob/main/index.js)
108
+ - [eslint-plugin-react/recommended](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/configs/recommended.js)
109
+ - [eslint-plugin-react-hooks/recommended](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/src/index.js)
110
+ - [eslint-plugin-jsx-a11y/recommended](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/src/index.js)
111
+ - [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue)
112
+ - [eslint-plugin-markdown/recommended](https://github.com/eslint/markdown/blob/main/src/index.js)
113
+ - [eslint-plugin-sonarjs/recommended](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/src/index.ts)
114
+ - [eslint-plugin-security/recommended](https://github.com/eslint-community/eslint-plugin-security/blob/main/index.js)
115
+ - [eslint-plugin-testing-library/dom](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/dom.ts)
116
+ - [eslint-plugin-testing-library/vue](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/vue.ts)
117
+ - [eslint-plugin-testing-library/react](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/react.ts)
118
+ - [eslint-plugin-testing-library/angular](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/angular.ts)
119
+ - [eslint-plugin-testing-library/marko](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/marko.ts)
120
+ - [eslint-plugin-playwright/flat/recommended](https://github.com/playwright-community/eslint-plugin-playwright/blob/main/src/index.ts)
package/dist/index.d.ts CHANGED
@@ -236,6 +236,7 @@ declare const _default: {
236
236
  CSSKeywordValue: false;
237
237
  CSSLayerBlockRule: false;
238
238
  CSSLayerStatementRule: false;
239
+ CSSMarginRule: false;
239
240
  CSSMathClamp: false;
240
241
  CSSMathInvert: false;
241
242
  CSSMathMax: false;
@@ -1201,12 +1202,15 @@ declare const _default: {
1201
1202
  XRDepthInformation: false;
1202
1203
  XRDOMOverlayState: false;
1203
1204
  XRFrame: false;
1205
+ XRHand: false;
1204
1206
  XRHitTestResult: false;
1205
1207
  XRHitTestSource: false;
1206
1208
  XRInputSource: false;
1207
1209
  XRInputSourceArray: false;
1208
1210
  XRInputSourceEvent: false;
1209
1211
  XRInputSourcesChangeEvent: false;
1212
+ XRJointPose: false;
1213
+ XRJointSpace: false;
1210
1214
  XRLayer: false;
1211
1215
  XRLightEstimate: false;
1212
1216
  XRLightProbe: false;
@@ -1502,6 +1506,7 @@ declare const reactPreset: ({
1502
1506
  CSSKeywordValue: false;
1503
1507
  CSSLayerBlockRule: false;
1504
1508
  CSSLayerStatementRule: false;
1509
+ CSSMarginRule: false;
1505
1510
  CSSMathClamp: false;
1506
1511
  CSSMathInvert: false;
1507
1512
  CSSMathMax: false;
@@ -2467,12 +2472,15 @@ declare const reactPreset: ({
2467
2472
  XRDepthInformation: false;
2468
2473
  XRDOMOverlayState: false;
2469
2474
  XRFrame: false;
2475
+ XRHand: false;
2470
2476
  XRHitTestResult: false;
2471
2477
  XRHitTestSource: false;
2472
2478
  XRInputSource: false;
2473
2479
  XRInputSourceArray: false;
2474
2480
  XRInputSourceEvent: false;
2475
2481
  XRInputSourcesChangeEvent: false;
2482
+ XRJointPose: false;
2483
+ XRJointSpace: false;
2476
2484
  XRLayer: false;
2477
2485
  XRLightEstimate: false;
2478
2486
  XRLightProbe: false;
@@ -2742,6 +2750,7 @@ declare const vuePreset: ({
2742
2750
  CSSKeywordValue: false;
2743
2751
  CSSLayerBlockRule: false;
2744
2752
  CSSLayerStatementRule: false;
2753
+ CSSMarginRule: false;
2745
2754
  CSSMathClamp: false;
2746
2755
  CSSMathInvert: false;
2747
2756
  CSSMathMax: false;
@@ -3707,12 +3716,15 @@ declare const vuePreset: ({
3707
3716
  XRDepthInformation: false;
3708
3717
  XRDOMOverlayState: false;
3709
3718
  XRFrame: false;
3719
+ XRHand: false;
3710
3720
  XRHitTestResult: false;
3711
3721
  XRHitTestSource: false;
3712
3722
  XRInputSource: false;
3713
3723
  XRInputSourceArray: false;
3714
3724
  XRInputSourceEvent: false;
3715
3725
  XRInputSourcesChangeEvent: false;
3726
+ XRJointPose: false;
3727
+ XRJointSpace: false;
3716
3728
  XRLayer: false;
3717
3729
  XRLightEstimate: false;
3718
3730
  XRLightProbe: false;
@@ -3982,6 +3994,7 @@ declare const vueSkyline: ({
3982
3994
  CSSKeywordValue: false;
3983
3995
  CSSLayerBlockRule: false;
3984
3996
  CSSLayerStatementRule: false;
3997
+ CSSMarginRule: false;
3985
3998
  CSSMathClamp: false;
3986
3999
  CSSMathInvert: false;
3987
4000
  CSSMathMax: false;
@@ -4947,12 +4960,15 @@ declare const vueSkyline: ({
4947
4960
  XRDepthInformation: false;
4948
4961
  XRDOMOverlayState: false;
4949
4962
  XRFrame: false;
4963
+ XRHand: false;
4950
4964
  XRHitTestResult: false;
4951
4965
  XRHitTestSource: false;
4952
4966
  XRInputSource: false;
4953
4967
  XRInputSourceArray: false;
4954
4968
  XRInputSourceEvent: false;
4955
4969
  XRInputSourcesChangeEvent: false;
4970
+ XRJointPose: false;
4971
+ XRJointSpace: false;
4956
4972
  XRLayer: false;
4957
4973
  XRLightEstimate: false;
4958
4974
  XRLightProbe: false;
package/dist/index.js CHANGED
@@ -24,9 +24,50 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  mod
25
25
  ));
26
26
 
27
- // ../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/configs/eslint-all.js
27
+ // ../../node_modules/.pnpm/@eslint+js@9.15.0/node_modules/@eslint/js/package.json
28
+ var require_package = __commonJS({
29
+ "../../node_modules/.pnpm/@eslint+js@9.15.0/node_modules/@eslint/js/package.json"(exports, module) {
30
+ module.exports = {
31
+ name: "@eslint/js",
32
+ version: "9.15.0",
33
+ description: "ESLint JavaScript language implementation",
34
+ main: "./src/index.js",
35
+ types: "./types/index.d.ts",
36
+ scripts: {
37
+ "test:types": "tsc -p tests/types/tsconfig.json"
38
+ },
39
+ files: [
40
+ "LICENSE",
41
+ "README.md",
42
+ "src",
43
+ "types"
44
+ ],
45
+ publishConfig: {
46
+ access: "public"
47
+ },
48
+ repository: {
49
+ type: "git",
50
+ url: "https://github.com/eslint/eslint.git",
51
+ directory: "packages/js"
52
+ },
53
+ homepage: "https://eslint.org",
54
+ bugs: "https://github.com/eslint/eslint/issues/",
55
+ keywords: [
56
+ "javascript",
57
+ "eslint-plugin",
58
+ "eslint"
59
+ ],
60
+ license: "MIT",
61
+ engines: {
62
+ node: "^18.18.0 || ^20.9.0 || >=21.1.0"
63
+ }
64
+ };
65
+ }
66
+ });
67
+
68
+ // ../../node_modules/.pnpm/@eslint+js@9.15.0/node_modules/@eslint/js/src/configs/eslint-all.js
28
69
  var require_eslint_all = __commonJS({
29
- "../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/configs/eslint-all.js"(exports, module) {
70
+ "../../node_modules/.pnpm/@eslint+js@9.15.0/node_modules/@eslint/js/src/configs/eslint-all.js"(exports, module) {
30
71
  "use strict";
31
72
  module.exports = Object.freeze({
32
73
  "rules": {
@@ -232,9 +273,9 @@ var require_eslint_all = __commonJS({
232
273
  }
233
274
  });
234
275
 
235
- // ../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/configs/eslint-recommended.js
276
+ // ../../node_modules/.pnpm/@eslint+js@9.15.0/node_modules/@eslint/js/src/configs/eslint-recommended.js
236
277
  var require_eslint_recommended = __commonJS({
237
- "../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/configs/eslint-recommended.js"(exports, module) {
278
+ "../../node_modules/.pnpm/@eslint+js@9.15.0/node_modules/@eslint/js/src/configs/eslint-recommended.js"(exports, module) {
238
279
  "use strict";
239
280
  module.exports = Object.freeze({
240
281
  rules: Object.freeze({
@@ -304,11 +345,16 @@ var require_eslint_recommended = __commonJS({
304
345
  }
305
346
  });
306
347
 
307
- // ../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/index.js
348
+ // ../../node_modules/.pnpm/@eslint+js@9.15.0/node_modules/@eslint/js/src/index.js
308
349
  var require_src = __commonJS({
309
- "../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/index.js"(exports, module) {
350
+ "../../node_modules/.pnpm/@eslint+js@9.15.0/node_modules/@eslint/js/src/index.js"(exports, module) {
310
351
  "use strict";
352
+ var { version } = require_package();
311
353
  module.exports = {
354
+ meta: {
355
+ name: "@eslint/js",
356
+ version
357
+ },
312
358
  configs: {
313
359
  all: require_eslint_all(),
314
360
  recommended: require_eslint_recommended()
@@ -514,14 +560,14 @@ var unicornConfig = {
514
560
 
515
561
  // configs/markdown.ts
516
562
  var markdownConfigs = default18.configs.recommended.map((config) => {
517
- const { name, rules: rules5 } = config;
563
+ const { name, rules: rules4 } = config;
518
564
  const baseConfig = {
519
565
  ...config,
520
566
  name: `component-hook/${name}`
521
567
  };
522
- if (rules5) {
568
+ if (rules4) {
523
569
  baseConfig.rules = {
524
- ...rules5,
570
+ ...rules4,
525
571
  "no-alert": "off",
526
572
  "no-console": "off",
527
573
  "no-restricted-imports": "off",
@@ -596,11 +642,12 @@ var sonarjsConfigs = [
596
642
  settings
597
643
  },
598
644
  {
599
- name: "component-hook/sonarjs/allow-unused-import",
645
+ name: "component-hook/sonarjs/allow-in-markdown",
600
646
  files: ["**/*.md/**"],
601
647
  plugins: plugins2,
602
648
  rules: {
603
- "sonarjs/unused-import": "off"
649
+ "sonarjs/unused-import": "off",
650
+ "sonarjs/no-unused-vars": "off"
604
651
  },
605
652
  settings
606
653
  }
@@ -755,52 +802,41 @@ var playwrightConfig = {
755
802
  // configs/testing-library.ts
756
803
  var configs = default15.configs;
757
804
  var plugins3 = {
758
- "testing-library": fixupPluginRules({ rules: default15.rules })
759
- };
760
- var rules4 = {
761
- "testing-library/await-async-queries": "error",
762
- "testing-library/no-await-sync-queries": "error",
763
- "testing-library/no-debugging-utils": "warn",
764
- "testing-library/no-dom-import": "off"
805
+ "testing-library": default15
765
806
  };
766
807
  var testingLibraryDomConfig = {
767
808
  name: "component-hook/testing-library/dom",
768
809
  plugins: plugins3,
769
810
  rules: {
770
- ...configs.dom.rules,
771
- ...rules4
811
+ ...configs["flat/dom"].rules
772
812
  }
773
813
  };
774
814
  var testingLibraryAngularConfig = {
775
815
  name: "component-hook/testing-library/angular",
776
816
  plugins: plugins3,
777
817
  rules: {
778
- ...configs.angular.rules,
779
- ...rules4
818
+ ...configs["flat/angular"].rules
780
819
  }
781
820
  };
782
821
  var testingLibraryReactConfig = {
783
822
  name: "component-hook/testing-library/react",
784
823
  plugins: plugins3,
785
824
  rules: {
786
- ...configs.react.rules,
787
- ...rules4
825
+ ...configs["flat/react"].rules
788
826
  }
789
827
  };
790
828
  var testingLibraryVueConfig = {
791
829
  name: "component-hook/testing-library/vue",
792
830
  plugins: plugins3,
793
831
  rules: {
794
- ...configs.vue.rules,
795
- ...rules4
832
+ ...configs["flat/vue"].rules
796
833
  }
797
834
  };
798
835
  var testingLibraryMarkoConfig = {
799
836
  name: "component-hook/testing-library/marko",
800
837
  plugins: plugins3,
801
838
  rules: {
802
- ...configs.marko.rules,
803
- ...rules4
839
+ ...configs["flat/marko"].rules
804
840
  }
805
841
  };
806
842
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@component-hook/eslint-plugin",
3
- "version": "0.2.2-alpha.0",
3
+ "version": "0.2.2-alpha.2",
4
4
  "description": "ESLint config for component hook",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "eslint-plugin"
31
31
  ],
32
32
  "peerDependencies": {
33
- "eslint": "^9.8.0"
33
+ "eslint": "^9.15.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
@@ -45,12 +45,12 @@
45
45
  "eslint-plugin-react-hooks": "^5.0.0",
46
46
  "eslint-plugin-regexp": "^2.7.0",
47
47
  "eslint-plugin-security": "^3.0.1",
48
- "eslint-plugin-sonarjs": "^2.0.4",
49
- "eslint-plugin-testing-library": "^6.5.0",
48
+ "eslint-plugin-sonarjs": "^3.0.0",
49
+ "eslint-plugin-testing-library": "^7.0.0",
50
50
  "eslint-plugin-unicorn": "^56.0.1",
51
- "eslint-plugin-vue": "^9.31.0",
52
- "globals": "^15.12.0",
53
- "typescript-eslint": "^8.15.0",
51
+ "eslint-plugin-vue": "^9.32.0",
52
+ "globals": "^15.13.0",
53
+ "typescript-eslint": "^8.17.0",
54
54
  "vue-eslint-parser": "^9.4.3"
55
55
  },
56
56
  "devDependencies": {