@component-hook/eslint-plugin 0.2.1 → 0.2.2-alpha.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/dist/index.js +66 -28
- package/package.json +6 -6
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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:
|
|
563
|
+
const { name, rules: rules4 } = config;
|
|
518
564
|
const baseConfig = {
|
|
519
565
|
...config,
|
|
520
566
|
name: `component-hook/${name}`
|
|
521
567
|
};
|
|
522
|
-
if (
|
|
568
|
+
if (rules4) {
|
|
523
569
|
baseConfig.rules = {
|
|
524
|
-
...
|
|
570
|
+
...rules4,
|
|
525
571
|
"no-alert": "off",
|
|
526
572
|
"no-console": "off",
|
|
527
573
|
"no-restricted-imports": "off",
|
|
@@ -581,7 +627,7 @@ var commentsConfigs = [
|
|
|
581
627
|
|
|
582
628
|
// configs/sonarjs.ts
|
|
583
629
|
var plugins2 = {
|
|
584
|
-
sonarjs:
|
|
630
|
+
sonarjs: default12
|
|
585
631
|
};
|
|
586
632
|
var { settings } = default12.configs.recommended;
|
|
587
633
|
var sonarjsConfigs = [
|
|
@@ -591,7 +637,10 @@ var sonarjsConfigs = [
|
|
|
591
637
|
rules: {
|
|
592
638
|
...default12.configs.recommended.rules,
|
|
593
639
|
"sonarjs/no-commented-code": "warn",
|
|
594
|
-
"sonarjs/no-vue-bypass-sanitization": "warn"
|
|
640
|
+
"sonarjs/no-vue-bypass-sanitization": "warn",
|
|
641
|
+
// TypeError: Error while loading at eslint v9.15.0
|
|
642
|
+
"sonarjs/no-empty-function": "off",
|
|
643
|
+
"sonarjs/no-unused-expressions": "off"
|
|
595
644
|
},
|
|
596
645
|
settings
|
|
597
646
|
},
|
|
@@ -755,52 +804,41 @@ var playwrightConfig = {
|
|
|
755
804
|
// configs/testing-library.ts
|
|
756
805
|
var configs = default15.configs;
|
|
757
806
|
var plugins3 = {
|
|
758
|
-
"testing-library":
|
|
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"
|
|
807
|
+
"testing-library": default15
|
|
765
808
|
};
|
|
766
809
|
var testingLibraryDomConfig = {
|
|
767
810
|
name: "component-hook/testing-library/dom",
|
|
768
811
|
plugins: plugins3,
|
|
769
812
|
rules: {
|
|
770
|
-
...configs
|
|
771
|
-
...rules4
|
|
813
|
+
...configs["flat/dom"].rules
|
|
772
814
|
}
|
|
773
815
|
};
|
|
774
816
|
var testingLibraryAngularConfig = {
|
|
775
817
|
name: "component-hook/testing-library/angular",
|
|
776
818
|
plugins: plugins3,
|
|
777
819
|
rules: {
|
|
778
|
-
...configs
|
|
779
|
-
...rules4
|
|
820
|
+
...configs["flat/angular"].rules
|
|
780
821
|
}
|
|
781
822
|
};
|
|
782
823
|
var testingLibraryReactConfig = {
|
|
783
824
|
name: "component-hook/testing-library/react",
|
|
784
825
|
plugins: plugins3,
|
|
785
826
|
rules: {
|
|
786
|
-
...configs
|
|
787
|
-
...rules4
|
|
827
|
+
...configs["flat/react"].rules
|
|
788
828
|
}
|
|
789
829
|
};
|
|
790
830
|
var testingLibraryVueConfig = {
|
|
791
831
|
name: "component-hook/testing-library/vue",
|
|
792
832
|
plugins: plugins3,
|
|
793
833
|
rules: {
|
|
794
|
-
...configs
|
|
795
|
-
...rules4
|
|
834
|
+
...configs["flat/vue"].rules
|
|
796
835
|
}
|
|
797
836
|
};
|
|
798
837
|
var testingLibraryMarkoConfig = {
|
|
799
838
|
name: "component-hook/testing-library/marko",
|
|
800
839
|
plugins: plugins3,
|
|
801
840
|
rules: {
|
|
802
|
-
...configs
|
|
803
|
-
...rules4
|
|
841
|
+
...configs["flat/marko"].rules
|
|
804
842
|
}
|
|
805
843
|
};
|
|
806
844
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@component-hook/eslint-plugin",
|
|
3
|
-
"version": "0.2.1",
|
|
3
|
+
"version": "0.2.2-alpha.1",
|
|
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.
|
|
33
|
+
"eslint": "^9.15.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"eslint-plugin-import": "^2.31.0",
|
|
40
40
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
41
41
|
"eslint-plugin-markdown": "^5.1.0",
|
|
42
|
-
"eslint-plugin-playwright": "^2.0
|
|
42
|
+
"eslint-plugin-playwright": "^2.1.0",
|
|
43
43
|
"eslint-plugin-prettier": "^5.2.1",
|
|
44
44
|
"eslint-plugin-react": "^7.37.2",
|
|
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
48
|
"eslint-plugin-sonarjs": "^2.0.4",
|
|
49
|
-
"eslint-plugin-testing-library": "^
|
|
50
|
-
"eslint-plugin-unicorn": "^56.0.
|
|
49
|
+
"eslint-plugin-testing-library": "^7.0.0",
|
|
50
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
51
51
|
"eslint-plugin-vue": "^9.31.0",
|
|
52
52
|
"globals": "^15.12.0",
|
|
53
|
-
"typescript-eslint": "^8.
|
|
53
|
+
"typescript-eslint": "^8.15.0",
|
|
54
54
|
"vue-eslint-parser": "^9.4.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|