@component-hook/eslint-plugin 1.1.2 → 1.1.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/README.md CHANGED
@@ -91,7 +91,7 @@ export default vuePreset;
91
91
  | basic | `Linter.Config[]` | `eslint-recommended`, `typescript-eslint`, `eslint-plugin-eslint-comments`, `eslint-plugin-import`, `eslint-plugin-unicorn`, `eslint-plugin-jsdoc`, `eslint-plugin-regexp`, `eslint-plugin-de-morgan`, `eslint-plugin-perfectionist` |
92
92
  | vue | `Linter.Config[]` | `eslint-plugin-vue`, `typescript-eslint` |
93
93
  | react | `Linter.Config[]` | `eslint-plugin-react/recommended`, `eslint-plugin-react-hooks/recommended`, `eslint-plugin-jsx-a11y/recommended` |
94
- | markdown | `Linter.Config[]` | `eslint-plugin-markdown/recommended` |
94
+ | markdown | `Linter.Config[]` | `@eslint/markdown` |
95
95
  | prettier | `Linter.Config` | `eslint-plugin-prettier/recommended` |
96
96
  | sonarjs | `Linter.Config[]` | `eslint-plugin-sonarjs/recommended` |
97
97
  | security | `Linter.Config` | `eslint-plugin-security/recommended` |
@@ -118,7 +118,7 @@ export default vuePreset;
118
118
  - [eslint-plugin-react-hooks/recommended](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/src/index.js)
119
119
  - [eslint-plugin-jsx-a11y/recommended](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/src/index.js)
120
120
  - [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue)
121
- - [eslint-plugin-markdown/recommended](https://github.com/eslint/markdown/blob/main/src/index.js)
121
+ - [@eslint/markdown](https://github.com/eslint/markdown/blob/main/src/index.js)
122
122
  - [eslint-plugin-sonarjs/recommended](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/src/index.ts)
123
123
  - [eslint-plugin-security/recommended](https://github.com/eslint-community/eslint-plugin-security/blob/main/index.js)
124
124
  - [eslint-plugin-testing-library/dom](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/dom.ts)
package/dist/index.d.ts CHANGED
@@ -223,6 +223,7 @@ declare const _default: {
223
223
  clearTimeout: false;
224
224
  clientInformation: false;
225
225
  Clipboard: false;
226
+ ClipboardChangeEvent: false;
226
227
  ClipboardEvent: false;
227
228
  ClipboardItem: false;
228
229
  close: false;
@@ -245,6 +246,7 @@ declare const _default: {
245
246
  CookieStoreManager: false;
246
247
  CountQueuingStrategy: false;
247
248
  createImageBitmap: false;
249
+ CreateMonitor: false;
248
250
  Credential: false;
249
251
  credentialless: false;
250
252
  CredentialsContainer: false;
@@ -583,6 +585,7 @@ declare const _default: {
583
585
  InputDeviceCapabilities: false;
584
586
  InputDeviceInfo: false;
585
587
  InputEvent: false;
588
+ IntegrityViolationReportBody: false;
586
589
  IntersectionObserver: false;
587
590
  IntersectionObserverEntry: false;
588
591
  isSecureContext: false;
@@ -898,6 +901,7 @@ declare const _default: {
898
901
  PushSubscriptionOptions: false;
899
902
  queryLocalFonts: false;
900
903
  queueMicrotask: false;
904
+ QuotaExceededError: false;
901
905
  RadioNodeList: false;
902
906
  Range: false;
903
907
  ReadableByteStreamController: false;
@@ -1021,6 +1025,7 @@ declare const _default: {
1021
1025
  SubmitEvent: false;
1022
1026
  Subscriber: false;
1023
1027
  SubtleCrypto: false;
1028
+ Summarizer: false;
1024
1029
  SuppressedError: false;
1025
1030
  SVGAElement: false;
1026
1031
  SVGAngle: false;
@@ -1151,6 +1156,7 @@ declare const _default: {
1151
1156
  TransformStream: false;
1152
1157
  TransformStreamDefaultController: false;
1153
1158
  TransitionEvent: false;
1159
+ Translator: false;
1154
1160
  TreeWalker: false;
1155
1161
  TrustedHTML: false;
1156
1162
  TrustedScript: false;
@@ -1182,6 +1188,8 @@ declare const _default: {
1182
1188
  VideoEncoder: false;
1183
1189
  VideoFrame: false;
1184
1190
  VideoPlaybackQuality: false;
1191
+ viewport: false;
1192
+ Viewport: false;
1185
1193
  ViewTimeline: false;
1186
1194
  ViewTransition: false;
1187
1195
  ViewTransitionTypeSet: false;
@@ -1298,7 +1306,42 @@ declare const _default: {
1298
1306
  })[];
1299
1307
  react: eslint.Linter.Config<eslint.Linter.RulesRecord>[];
1300
1308
  vue: eslint.Linter.Config<eslint.Linter.RulesRecord>[];
1301
- markdown: eslint.Linter.Config<eslint.Linter.RulesRecord>[];
1309
+ markdown: ({
1310
+ name: string;
1311
+ basePath?: string;
1312
+ files?: Array<string | string[]>;
1313
+ ignores?: string[];
1314
+ language?: string;
1315
+ languageOptions?: eslint.Linter.LanguageOptions;
1316
+ linterOptions?: eslint.Linter.LinterOptions;
1317
+ processor?: string | eslint.Linter.Processor;
1318
+ plugins?: Record<string, eslint.ESLint.Plugin>;
1319
+ rules?: Partial<eslint.Linter.RulesRecord> | undefined;
1320
+ settings?: Record<string, unknown>;
1321
+ } | {
1322
+ files: string[];
1323
+ name: string;
1324
+ rules: {
1325
+ 'no-alert': string;
1326
+ 'no-console': string;
1327
+ 'no-restricted-imports': string;
1328
+ 'no-undef': string;
1329
+ 'no-unused-expressions': string;
1330
+ 'no-unused-vars': string;
1331
+ '@typescript-eslint/consistent-type-imports': string;
1332
+ '@typescript-eslint/no-extraneous-class': string;
1333
+ '@typescript-eslint/no-namespace': string;
1334
+ '@typescript-eslint/no-redeclare': string;
1335
+ '@typescript-eslint/no-require-imports': string;
1336
+ '@typescript-eslint/no-unused-expressions': string;
1337
+ '@typescript-eslint/no-unused-vars': string;
1338
+ '@typescript-eslint/no-use-before-define': string;
1339
+ 'import/no-default-export': string;
1340
+ 'sonarjs/no-dead-store': string;
1341
+ 'sonarjs/unused-import': string;
1342
+ 'sonarjs/no-unused-vars': string;
1343
+ };
1344
+ })[];
1302
1345
  prettier: eslint.Linter.Config<eslint.Linter.RulesRecord>;
1303
1346
  sonarjs: eslint.Linter.Config<eslint.Linter.RulesRecord>[];
1304
1347
  security: {
@@ -1312,6 +1355,7 @@ declare const _default: {
1312
1355
  };
1313
1356
  playwright: {
1314
1357
  name: string;
1358
+ basePath?: string;
1315
1359
  files?: Array<string | string[]>;
1316
1360
  ignores?: string[];
1317
1361
  language?: string;
@@ -1549,6 +1593,7 @@ declare const reactPreset: ({
1549
1593
  clearTimeout: false;
1550
1594
  clientInformation: false;
1551
1595
  Clipboard: false;
1596
+ ClipboardChangeEvent: false;
1552
1597
  ClipboardEvent: false;
1553
1598
  ClipboardItem: false;
1554
1599
  close: false;
@@ -1571,6 +1616,7 @@ declare const reactPreset: ({
1571
1616
  CookieStoreManager: false;
1572
1617
  CountQueuingStrategy: false;
1573
1618
  createImageBitmap: false;
1619
+ CreateMonitor: false;
1574
1620
  Credential: false;
1575
1621
  credentialless: false;
1576
1622
  CredentialsContainer: false;
@@ -1909,6 +1955,7 @@ declare const reactPreset: ({
1909
1955
  InputDeviceCapabilities: false;
1910
1956
  InputDeviceInfo: false;
1911
1957
  InputEvent: false;
1958
+ IntegrityViolationReportBody: false;
1912
1959
  IntersectionObserver: false;
1913
1960
  IntersectionObserverEntry: false;
1914
1961
  isSecureContext: false;
@@ -2224,6 +2271,7 @@ declare const reactPreset: ({
2224
2271
  PushSubscriptionOptions: false;
2225
2272
  queryLocalFonts: false;
2226
2273
  queueMicrotask: false;
2274
+ QuotaExceededError: false;
2227
2275
  RadioNodeList: false;
2228
2276
  Range: false;
2229
2277
  ReadableByteStreamController: false;
@@ -2347,6 +2395,7 @@ declare const reactPreset: ({
2347
2395
  SubmitEvent: false;
2348
2396
  Subscriber: false;
2349
2397
  SubtleCrypto: false;
2398
+ Summarizer: false;
2350
2399
  SuppressedError: false;
2351
2400
  SVGAElement: false;
2352
2401
  SVGAngle: false;
@@ -2477,6 +2526,7 @@ declare const reactPreset: ({
2477
2526
  TransformStream: false;
2478
2527
  TransformStreamDefaultController: false;
2479
2528
  TransitionEvent: false;
2529
+ Translator: false;
2480
2530
  TreeWalker: false;
2481
2531
  TrustedHTML: false;
2482
2532
  TrustedScript: false;
@@ -2508,6 +2558,8 @@ declare const reactPreset: ({
2508
2558
  VideoEncoder: false;
2509
2559
  VideoFrame: false;
2510
2560
  VideoPlaybackQuality: false;
2561
+ viewport: false;
2562
+ Viewport: false;
2511
2563
  ViewTimeline: false;
2512
2564
  ViewTransition: false;
2513
2565
  ViewTransitionTypeSet: false;
@@ -2621,6 +2673,29 @@ declare const reactPreset: ({
2621
2673
  setImmediate: false;
2622
2674
  };
2623
2675
  };
2676
+ } | {
2677
+ files: string[];
2678
+ name: string;
2679
+ rules: {
2680
+ 'no-alert': string;
2681
+ 'no-console': string;
2682
+ 'no-restricted-imports': string;
2683
+ 'no-undef': string;
2684
+ 'no-unused-expressions': string;
2685
+ 'no-unused-vars': string;
2686
+ '@typescript-eslint/consistent-type-imports': string;
2687
+ '@typescript-eslint/no-extraneous-class': string;
2688
+ '@typescript-eslint/no-namespace': string;
2689
+ '@typescript-eslint/no-redeclare': string;
2690
+ '@typescript-eslint/no-require-imports': string;
2691
+ '@typescript-eslint/no-unused-expressions': string;
2692
+ '@typescript-eslint/no-unused-vars': string;
2693
+ '@typescript-eslint/no-use-before-define': string;
2694
+ 'import/no-default-export': string;
2695
+ 'sonarjs/no-dead-store': string;
2696
+ 'sonarjs/unused-import': string;
2697
+ 'sonarjs/no-unused-vars': string;
2698
+ };
2624
2699
  } | {
2625
2700
  name: string;
2626
2701
  plugins: {
@@ -2849,6 +2924,7 @@ declare const vuePreset: ({
2849
2924
  clearTimeout: false;
2850
2925
  clientInformation: false;
2851
2926
  Clipboard: false;
2927
+ ClipboardChangeEvent: false;
2852
2928
  ClipboardEvent: false;
2853
2929
  ClipboardItem: false;
2854
2930
  close: false;
@@ -2871,6 +2947,7 @@ declare const vuePreset: ({
2871
2947
  CookieStoreManager: false;
2872
2948
  CountQueuingStrategy: false;
2873
2949
  createImageBitmap: false;
2950
+ CreateMonitor: false;
2874
2951
  Credential: false;
2875
2952
  credentialless: false;
2876
2953
  CredentialsContainer: false;
@@ -3209,6 +3286,7 @@ declare const vuePreset: ({
3209
3286
  InputDeviceCapabilities: false;
3210
3287
  InputDeviceInfo: false;
3211
3288
  InputEvent: false;
3289
+ IntegrityViolationReportBody: false;
3212
3290
  IntersectionObserver: false;
3213
3291
  IntersectionObserverEntry: false;
3214
3292
  isSecureContext: false;
@@ -3524,6 +3602,7 @@ declare const vuePreset: ({
3524
3602
  PushSubscriptionOptions: false;
3525
3603
  queryLocalFonts: false;
3526
3604
  queueMicrotask: false;
3605
+ QuotaExceededError: false;
3527
3606
  RadioNodeList: false;
3528
3607
  Range: false;
3529
3608
  ReadableByteStreamController: false;
@@ -3647,6 +3726,7 @@ declare const vuePreset: ({
3647
3726
  SubmitEvent: false;
3648
3727
  Subscriber: false;
3649
3728
  SubtleCrypto: false;
3729
+ Summarizer: false;
3650
3730
  SuppressedError: false;
3651
3731
  SVGAElement: false;
3652
3732
  SVGAngle: false;
@@ -3777,6 +3857,7 @@ declare const vuePreset: ({
3777
3857
  TransformStream: false;
3778
3858
  TransformStreamDefaultController: false;
3779
3859
  TransitionEvent: false;
3860
+ Translator: false;
3780
3861
  TreeWalker: false;
3781
3862
  TrustedHTML: false;
3782
3863
  TrustedScript: false;
@@ -3808,6 +3889,8 @@ declare const vuePreset: ({
3808
3889
  VideoEncoder: false;
3809
3890
  VideoFrame: false;
3810
3891
  VideoPlaybackQuality: false;
3892
+ viewport: false;
3893
+ Viewport: false;
3811
3894
  ViewTimeline: false;
3812
3895
  ViewTransition: false;
3813
3896
  ViewTransitionTypeSet: false;
@@ -3921,6 +4004,29 @@ declare const vuePreset: ({
3921
4004
  setImmediate: false;
3922
4005
  };
3923
4006
  };
4007
+ } | {
4008
+ files: string[];
4009
+ name: string;
4010
+ rules: {
4011
+ 'no-alert': string;
4012
+ 'no-console': string;
4013
+ 'no-restricted-imports': string;
4014
+ 'no-undef': string;
4015
+ 'no-unused-expressions': string;
4016
+ 'no-unused-vars': string;
4017
+ '@typescript-eslint/consistent-type-imports': string;
4018
+ '@typescript-eslint/no-extraneous-class': string;
4019
+ '@typescript-eslint/no-namespace': string;
4020
+ '@typescript-eslint/no-redeclare': string;
4021
+ '@typescript-eslint/no-require-imports': string;
4022
+ '@typescript-eslint/no-unused-expressions': string;
4023
+ '@typescript-eslint/no-unused-vars': string;
4024
+ '@typescript-eslint/no-use-before-define': string;
4025
+ 'import/no-default-export': string;
4026
+ 'sonarjs/no-dead-store': string;
4027
+ 'sonarjs/unused-import': string;
4028
+ 'sonarjs/no-unused-vars': string;
4029
+ };
3924
4030
  } | {
3925
4031
  name: string;
3926
4032
  plugins: {
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { default as default14 } from "eslint-plugin-playwright";
16
16
  import { default as default15 } from "eslint-plugin-testing-library";
17
17
  import { default as default16 } from "eslint-plugin-regexp";
18
18
  import { default as default17 } from "eslint-plugin-import";
19
- import { default as default18 } from "eslint-plugin-markdown";
19
+ import { default as default18 } from "@eslint/markdown";
20
20
  import { default as default19 } from "@eslint-community/eslint-plugin-eslint-comments/configs";
21
21
  import { default as default20 } from "eslint-plugin-unicorn";
22
22
  import { default as default21 } from "eslint-plugin-de-morgan";
@@ -80,7 +80,9 @@ var ignores = {
80
80
  };
81
81
 
82
82
  // constants.ts
83
+ var SRC = "**/*.?([cm])[jt]s?(x)";
83
84
  var SRC_EXT = "?([cm])[jt]s?(x)";
85
+ var VUE = "**/*.vue";
84
86
 
85
87
  // configs/import.ts
86
88
  var plugins = {
@@ -178,15 +180,15 @@ var jsdocConfig = {
178
180
  };
179
181
 
180
182
  // configs/markdown.ts
181
- var markdownConfigs = default18.configs.recommended.map((config) => {
182
- const { name, rules: rules5 } = config;
183
- const baseConfig = {
183
+ var markdownConfigs = [
184
+ ...default18.configs.processor.map((config) => ({
184
185
  ...config,
185
- name: `component-hook/${name}`
186
- };
187
- if (rules5) {
188
- baseConfig.rules = {
189
- ...rules5,
186
+ name: `component-hook/${config.name}`
187
+ })),
188
+ {
189
+ files: [`**/*.md/${SRC}`, `**/*.md/${VUE}`],
190
+ name: "component-hook/markdown-rules",
191
+ rules: {
190
192
  "no-alert": "off",
191
193
  "no-console": "off",
192
194
  "no-restricted-imports": "off",
@@ -205,10 +207,9 @@ var markdownConfigs = default18.configs.recommended.map((config) => {
205
207
  "sonarjs/no-dead-store": "off",
206
208
  "sonarjs/unused-import": "off",
207
209
  "sonarjs/no-unused-vars": "off"
208
- };
210
+ }
209
211
  }
210
- return baseConfig;
211
- });
212
+ ];
212
213
 
213
214
  // configs/perfectionist.ts
214
215
  var perfectionistConfig = {
@@ -506,6 +507,7 @@ var rules4 = {
506
507
  "vue/no-constant-condition": "warn",
507
508
  "vue/no-empty-pattern": "error",
508
509
  "vue/no-loss-of-precision": "error",
510
+ "vue/no-ref-as-operand": "off",
509
511
  "vue/no-unused-refs": "error",
510
512
  "vue/no-useless-v-bind": "error",
511
513
  "vue/no-v-html": "off",
@@ -527,7 +529,7 @@ var rules4 = {
527
529
  var extendsTypescript = default4.configs.recommended.filter(({ name }) => name !== "typescript-eslint/base").map((config) => ({ ...config, name: `component-hook/vue/${config.name}` }));
528
530
  var eslintConfigTypescript = default4.config({
529
531
  extends: extendsTypescript,
530
- files: ["**/*.vue"],
532
+ files: [VUE],
531
533
  name: "component-hook/vue/typescript",
532
534
  rules: rules3
533
535
  });
@@ -535,7 +537,7 @@ var vueConfigs = [
535
537
  ...eslintConfigTypescript,
536
538
  {
537
539
  name: "component-hook/vue/globals",
538
- files: ["**/*.vue"],
540
+ files: [VUE],
539
541
  languageOptions: {
540
542
  globals: {
541
543
  defineProps: "readonly",
@@ -555,7 +557,7 @@ var vueConfigs = [
555
557
  },
556
558
  {
557
559
  name: "component-hook/vue",
558
- files: ["**/*.vue"],
560
+ files: [VUE],
559
561
  plugins: {
560
562
  "@typescript-eslint": default4.plugin,
561
563
  vue: default8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@component-hook/eslint-plugin",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "ESLint config for component hook",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,13 +35,13 @@
35
35
  "dependencies": {
36
36
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
37
37
  "@eslint/compat": "^1.3.1",
38
- "@eslint/js": "^9.29.0",
38
+ "@eslint/js": "^9.30.1",
39
+ "@eslint/markdown": "^7.0.0",
39
40
  "eslint-config-prettier": "^10.1.5",
40
41
  "eslint-plugin-de-morgan": "^1.3.0",
41
42
  "eslint-plugin-import": "^2.32.0",
42
- "eslint-plugin-jsdoc": "^51.2.3",
43
+ "eslint-plugin-jsdoc": "^51.3.4",
43
44
  "eslint-plugin-jsx-a11y": "^6.10.2",
44
- "eslint-plugin-markdown": "^5.1.0",
45
45
  "eslint-plugin-perfectionist": "^4.15.0",
46
46
  "eslint-plugin-playwright": "^2.2.0",
47
47
  "eslint-plugin-prettier": "^5.5.1",
@@ -50,12 +50,12 @@
50
50
  "eslint-plugin-regexp": "^2.9.0",
51
51
  "eslint-plugin-security": "^3.0.1",
52
52
  "eslint-plugin-sonarjs": "^3.0.4",
53
- "eslint-plugin-testing-library": "^7.5.3",
53
+ "eslint-plugin-testing-library": "^7.5.4",
54
54
  "eslint-plugin-unicorn": "^59.0.1",
55
- "eslint-plugin-vue": "^10.2.0",
56
- "globals": "^16.2.0",
57
- "typescript-eslint": "^8.35.0",
58
- "vue-eslint-parser": "^10.1.4"
55
+ "eslint-plugin-vue": "^10.3.0",
56
+ "globals": "^16.3.0",
57
+ "typescript-eslint": "^8.36.0",
58
+ "vue-eslint-parser": "^10.2.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@eslint/config-inspector": "^1.1.0",