@component-hook/eslint-plugin 0.1.4 → 0.1.5-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/README.md +16 -15
- package/dist/index.d.ts +188 -1
- package/dist/index.js +23 -11
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -79,26 +79,27 @@ export default vuePreset;
|
|
|
79
79
|
|
|
80
80
|
## Configs
|
|
81
81
|
|
|
82
|
-
| Name | Type | Reference
|
|
83
|
-
| ----------------------- | ----------------- |
|
|
84
|
-
| basic | `Linter.Config[]` | `eslint-recommended`, `typescript-eslint`, `eslint-plugin-import`, `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`
|
|
82
|
+
| Name | Type | Reference |
|
|
83
|
+
| ----------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
84
|
+
| basic | `Linter.Config[]` | `eslint-recommended`, `typescript-eslint`, `eslint-plugin-eslint-comments`, `eslint-plugin-import`, `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
97
|
|
|
98
98
|
## Reference eslint plugin
|
|
99
99
|
|
|
100
100
|
- [eslint-recommended](https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js)
|
|
101
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)
|
|
102
103
|
- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
|
|
103
104
|
- [eslint-plugin-regexp/flat/recommended](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/configs/flat/recommended.ts)
|
|
104
105
|
- [eslint-plugin-prettier/recommended](https://github.com/prettier/eslint-plugin-prettier/blob/master/recommended.js)
|
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ declare const _default: {
|
|
|
68
68
|
BackgroundFetchManager: false;
|
|
69
69
|
BackgroundFetchRecord: false;
|
|
70
70
|
BackgroundFetchRegistration: false;
|
|
71
|
+
BarcodeDetector: false;
|
|
71
72
|
BarProp: false;
|
|
72
73
|
BaseAudioContext: false;
|
|
73
74
|
BatteryManager: false;
|
|
@@ -671,6 +672,8 @@ declare const _default: {
|
|
|
671
672
|
onresize: true;
|
|
672
673
|
onscroll: true;
|
|
673
674
|
onscrollend: true;
|
|
675
|
+
onscrollsnapchange: true;
|
|
676
|
+
onscrollsnapchanging: true;
|
|
674
677
|
onsearch: true;
|
|
675
678
|
onsecuritypolicyviolation: true;
|
|
676
679
|
onseeked: true;
|
|
@@ -862,6 +865,7 @@ declare const _default: {
|
|
|
862
865
|
showDirectoryPicker: false;
|
|
863
866
|
showOpenFilePicker: false;
|
|
864
867
|
showSaveFilePicker: false;
|
|
868
|
+
SnapEvent: false;
|
|
865
869
|
SourceBuffer: false;
|
|
866
870
|
SourceBufferList: false;
|
|
867
871
|
speechSynthesis: false;
|
|
@@ -1164,7 +1168,92 @@ declare const _default: {
|
|
|
1164
1168
|
prettier: eslint.Linter.Config<eslint.Linter.RulesRecord>;
|
|
1165
1169
|
sonarjs: eslint.Linter.Config<eslint.Linter.RulesRecord>[];
|
|
1166
1170
|
security: eslint.Linter.Config<eslint.Linter.RulesRecord>;
|
|
1167
|
-
playwright:
|
|
1171
|
+
playwright: {
|
|
1172
|
+
name: string;
|
|
1173
|
+
languageOptions: {
|
|
1174
|
+
globals: any;
|
|
1175
|
+
};
|
|
1176
|
+
plugins: {
|
|
1177
|
+
playwright: {
|
|
1178
|
+
configs: {};
|
|
1179
|
+
rules: {
|
|
1180
|
+
"expect-expect": eslint.Rule.RuleModule;
|
|
1181
|
+
"max-expects": eslint.Rule.RuleModule;
|
|
1182
|
+
"max-nested-describe": eslint.Rule.RuleModule;
|
|
1183
|
+
"missing-playwright-await": eslint.Rule.RuleModule;
|
|
1184
|
+
"no-commented-out-tests": eslint.Rule.RuleModule;
|
|
1185
|
+
"no-conditional-expect": eslint.Rule.RuleModule;
|
|
1186
|
+
"no-conditional-in-test": eslint.Rule.RuleModule;
|
|
1187
|
+
"no-duplicate-hooks": eslint.Rule.RuleModule;
|
|
1188
|
+
"no-element-handle": eslint.Rule.RuleModule;
|
|
1189
|
+
"no-eval": eslint.Rule.RuleModule;
|
|
1190
|
+
"no-focused-test": eslint.Rule.RuleModule;
|
|
1191
|
+
"no-force-option": eslint.Rule.RuleModule;
|
|
1192
|
+
"no-get-by-title": eslint.Rule.RuleModule;
|
|
1193
|
+
"no-hooks": eslint.Rule.RuleModule;
|
|
1194
|
+
"no-nested-step": eslint.Rule.RuleModule;
|
|
1195
|
+
"no-networkidle": eslint.Rule.RuleModule;
|
|
1196
|
+
"no-nth-methods": eslint.Rule.RuleModule;
|
|
1197
|
+
"no-page-pause": eslint.Rule.RuleModule;
|
|
1198
|
+
"no-raw-locators": eslint.Rule.RuleModule;
|
|
1199
|
+
"no-restricted-matchers": eslint.Rule.RuleModule;
|
|
1200
|
+
"no-skipped-test": eslint.Rule.RuleModule;
|
|
1201
|
+
"no-standalone-expect": eslint.Rule.RuleModule;
|
|
1202
|
+
"no-unsafe-references": eslint.Rule.RuleModule;
|
|
1203
|
+
"no-useless-await": eslint.Rule.RuleModule;
|
|
1204
|
+
"no-useless-not": eslint.Rule.RuleModule;
|
|
1205
|
+
"no-wait-for-selector": eslint.Rule.RuleModule;
|
|
1206
|
+
"no-wait-for-timeout": eslint.Rule.RuleModule;
|
|
1207
|
+
"prefer-comparison-matcher": eslint.Rule.RuleModule;
|
|
1208
|
+
"prefer-equality-matcher": eslint.Rule.RuleModule;
|
|
1209
|
+
"prefer-hooks-in-order": eslint.Rule.RuleModule;
|
|
1210
|
+
"prefer-hooks-on-top": eslint.Rule.RuleModule;
|
|
1211
|
+
"prefer-lowercase-title": eslint.Rule.RuleModule;
|
|
1212
|
+
"prefer-strict-equal": eslint.Rule.RuleModule;
|
|
1213
|
+
"prefer-to-be": eslint.Rule.RuleModule;
|
|
1214
|
+
"prefer-to-contain": eslint.Rule.RuleModule;
|
|
1215
|
+
"prefer-to-have-count": eslint.Rule.RuleModule;
|
|
1216
|
+
"prefer-to-have-length": eslint.Rule.RuleModule;
|
|
1217
|
+
"prefer-web-first-assertions": eslint.Rule.RuleModule;
|
|
1218
|
+
"require-hook": eslint.Rule.RuleModule;
|
|
1219
|
+
"require-soft-assertions": eslint.Rule.RuleModule;
|
|
1220
|
+
"require-to-throw-message": eslint.Rule.RuleModule;
|
|
1221
|
+
"require-top-level-describe": eslint.Rule.RuleModule;
|
|
1222
|
+
"valid-describe-callback": eslint.Rule.RuleModule;
|
|
1223
|
+
"valid-expect": eslint.Rule.RuleModule;
|
|
1224
|
+
"valid-expect-in-promise": eslint.Rule.RuleModule;
|
|
1225
|
+
"valid-title": eslint.Rule.RuleModule;
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
rules: {
|
|
1230
|
+
readonly "no-empty-pattern": "off";
|
|
1231
|
+
readonly "playwright/expect-expect": "warn";
|
|
1232
|
+
readonly "playwright/max-nested-describe": "warn";
|
|
1233
|
+
readonly "playwright/missing-playwright-await": "error";
|
|
1234
|
+
readonly "playwright/no-conditional-expect": "warn";
|
|
1235
|
+
readonly "playwright/no-conditional-in-test": "warn";
|
|
1236
|
+
readonly "playwright/no-element-handle": "warn";
|
|
1237
|
+
readonly "playwright/no-eval": "warn";
|
|
1238
|
+
readonly "playwright/no-focused-test": "error";
|
|
1239
|
+
readonly "playwright/no-force-option": "warn";
|
|
1240
|
+
readonly "playwright/no-nested-step": "warn";
|
|
1241
|
+
readonly "playwright/no-networkidle": "error";
|
|
1242
|
+
readonly "playwright/no-page-pause": "warn";
|
|
1243
|
+
readonly "playwright/no-skipped-test": "warn";
|
|
1244
|
+
readonly "playwright/no-standalone-expect": "error";
|
|
1245
|
+
readonly "playwright/no-unsafe-references": "error";
|
|
1246
|
+
readonly "playwright/no-useless-await": "warn";
|
|
1247
|
+
readonly "playwright/no-useless-not": "warn";
|
|
1248
|
+
readonly "playwright/no-wait-for-selector": "warn";
|
|
1249
|
+
readonly "playwright/no-wait-for-timeout": "warn";
|
|
1250
|
+
readonly "playwright/prefer-web-first-assertions": "error";
|
|
1251
|
+
readonly "playwright/valid-describe-callback": "error";
|
|
1252
|
+
readonly "playwright/valid-expect": "error";
|
|
1253
|
+
readonly "playwright/valid-expect-in-promise": "error";
|
|
1254
|
+
readonly "playwright/valid-title": "error";
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1168
1257
|
'testing-library/dom': eslint.Linter.Config<eslint.Linter.RulesRecord>;
|
|
1169
1258
|
'testing-library/vue': eslint.Linter.Config<eslint.Linter.RulesRecord>;
|
|
1170
1259
|
'testing-library/react': eslint.Linter.Config<eslint.Linter.RulesRecord>;
|
|
@@ -1239,6 +1328,7 @@ declare const reactPreset: ({
|
|
|
1239
1328
|
BackgroundFetchManager: false;
|
|
1240
1329
|
BackgroundFetchRecord: false;
|
|
1241
1330
|
BackgroundFetchRegistration: false;
|
|
1331
|
+
BarcodeDetector: false;
|
|
1242
1332
|
BarProp: false;
|
|
1243
1333
|
BaseAudioContext: false;
|
|
1244
1334
|
BatteryManager: false;
|
|
@@ -1842,6 +1932,8 @@ declare const reactPreset: ({
|
|
|
1842
1932
|
onresize: true;
|
|
1843
1933
|
onscroll: true;
|
|
1844
1934
|
onscrollend: true;
|
|
1935
|
+
onscrollsnapchange: true;
|
|
1936
|
+
onscrollsnapchanging: true;
|
|
1845
1937
|
onsearch: true;
|
|
1846
1938
|
onsecuritypolicyviolation: true;
|
|
1847
1939
|
onseeked: true;
|
|
@@ -2033,6 +2125,7 @@ declare const reactPreset: ({
|
|
|
2033
2125
|
showDirectoryPicker: false;
|
|
2034
2126
|
showOpenFilePicker: false;
|
|
2035
2127
|
showSaveFilePicker: false;
|
|
2128
|
+
SnapEvent: false;
|
|
2036
2129
|
SourceBuffer: false;
|
|
2037
2130
|
SourceBufferList: false;
|
|
2038
2131
|
speechSynthesis: false;
|
|
@@ -2395,6 +2488,7 @@ declare const vuePreset: ({
|
|
|
2395
2488
|
BackgroundFetchManager: false;
|
|
2396
2489
|
BackgroundFetchRecord: false;
|
|
2397
2490
|
BackgroundFetchRegistration: false;
|
|
2491
|
+
BarcodeDetector: false;
|
|
2398
2492
|
BarProp: false;
|
|
2399
2493
|
BaseAudioContext: false;
|
|
2400
2494
|
BatteryManager: false;
|
|
@@ -2998,6 +3092,8 @@ declare const vuePreset: ({
|
|
|
2998
3092
|
onresize: true;
|
|
2999
3093
|
onscroll: true;
|
|
3000
3094
|
onscrollend: true;
|
|
3095
|
+
onscrollsnapchange: true;
|
|
3096
|
+
onscrollsnapchanging: true;
|
|
3001
3097
|
onsearch: true;
|
|
3002
3098
|
onsecuritypolicyviolation: true;
|
|
3003
3099
|
onseeked: true;
|
|
@@ -3189,6 +3285,7 @@ declare const vuePreset: ({
|
|
|
3189
3285
|
showDirectoryPicker: false;
|
|
3190
3286
|
showOpenFilePicker: false;
|
|
3191
3287
|
showSaveFilePicker: false;
|
|
3288
|
+
SnapEvent: false;
|
|
3192
3289
|
SourceBuffer: false;
|
|
3193
3290
|
SourceBufferList: false;
|
|
3194
3291
|
speechSynthesis: false;
|
|
@@ -3551,6 +3648,7 @@ declare const vueSkyline: ({
|
|
|
3551
3648
|
BackgroundFetchManager: false;
|
|
3552
3649
|
BackgroundFetchRecord: false;
|
|
3553
3650
|
BackgroundFetchRegistration: false;
|
|
3651
|
+
BarcodeDetector: false;
|
|
3554
3652
|
BarProp: false;
|
|
3555
3653
|
BaseAudioContext: false;
|
|
3556
3654
|
BatteryManager: false;
|
|
@@ -4154,6 +4252,8 @@ declare const vueSkyline: ({
|
|
|
4154
4252
|
onresize: true;
|
|
4155
4253
|
onscroll: true;
|
|
4156
4254
|
onscrollend: true;
|
|
4255
|
+
onscrollsnapchange: true;
|
|
4256
|
+
onscrollsnapchanging: true;
|
|
4157
4257
|
onsearch: true;
|
|
4158
4258
|
onsecuritypolicyviolation: true;
|
|
4159
4259
|
onseeked: true;
|
|
@@ -4345,6 +4445,7 @@ declare const vueSkyline: ({
|
|
|
4345
4445
|
showDirectoryPicker: false;
|
|
4346
4446
|
showOpenFilePicker: false;
|
|
4347
4447
|
showSaveFilePicker: false;
|
|
4448
|
+
SnapEvent: false;
|
|
4348
4449
|
SourceBuffer: false;
|
|
4349
4450
|
SourceBufferList: false;
|
|
4350
4451
|
speechSynthesis: false;
|
|
@@ -4647,6 +4748,92 @@ declare const vueSkyline: ({
|
|
|
4647
4748
|
order: string[];
|
|
4648
4749
|
})[];
|
|
4649
4750
|
};
|
|
4751
|
+
} | {
|
|
4752
|
+
name: string;
|
|
4753
|
+
languageOptions: {
|
|
4754
|
+
globals: any;
|
|
4755
|
+
};
|
|
4756
|
+
plugins: {
|
|
4757
|
+
playwright: {
|
|
4758
|
+
configs: {};
|
|
4759
|
+
rules: {
|
|
4760
|
+
"expect-expect": eslint.Rule.RuleModule;
|
|
4761
|
+
"max-expects": eslint.Rule.RuleModule;
|
|
4762
|
+
"max-nested-describe": eslint.Rule.RuleModule;
|
|
4763
|
+
"missing-playwright-await": eslint.Rule.RuleModule;
|
|
4764
|
+
"no-commented-out-tests": eslint.Rule.RuleModule;
|
|
4765
|
+
"no-conditional-expect": eslint.Rule.RuleModule;
|
|
4766
|
+
"no-conditional-in-test": eslint.Rule.RuleModule;
|
|
4767
|
+
"no-duplicate-hooks": eslint.Rule.RuleModule;
|
|
4768
|
+
"no-element-handle": eslint.Rule.RuleModule;
|
|
4769
|
+
"no-eval": eslint.Rule.RuleModule;
|
|
4770
|
+
"no-focused-test": eslint.Rule.RuleModule;
|
|
4771
|
+
"no-force-option": eslint.Rule.RuleModule;
|
|
4772
|
+
"no-get-by-title": eslint.Rule.RuleModule;
|
|
4773
|
+
"no-hooks": eslint.Rule.RuleModule;
|
|
4774
|
+
"no-nested-step": eslint.Rule.RuleModule;
|
|
4775
|
+
"no-networkidle": eslint.Rule.RuleModule;
|
|
4776
|
+
"no-nth-methods": eslint.Rule.RuleModule;
|
|
4777
|
+
"no-page-pause": eslint.Rule.RuleModule;
|
|
4778
|
+
"no-raw-locators": eslint.Rule.RuleModule;
|
|
4779
|
+
"no-restricted-matchers": eslint.Rule.RuleModule;
|
|
4780
|
+
"no-skipped-test": eslint.Rule.RuleModule;
|
|
4781
|
+
"no-standalone-expect": eslint.Rule.RuleModule;
|
|
4782
|
+
"no-unsafe-references": eslint.Rule.RuleModule;
|
|
4783
|
+
"no-useless-await": eslint.Rule.RuleModule;
|
|
4784
|
+
"no-useless-not": eslint.Rule.RuleModule;
|
|
4785
|
+
"no-wait-for-selector": eslint.Rule.RuleModule;
|
|
4786
|
+
"no-wait-for-timeout": eslint.Rule.RuleModule;
|
|
4787
|
+
"prefer-comparison-matcher": eslint.Rule.RuleModule;
|
|
4788
|
+
"prefer-equality-matcher": eslint.Rule.RuleModule;
|
|
4789
|
+
"prefer-hooks-in-order": eslint.Rule.RuleModule;
|
|
4790
|
+
"prefer-hooks-on-top": eslint.Rule.RuleModule;
|
|
4791
|
+
"prefer-lowercase-title": eslint.Rule.RuleModule;
|
|
4792
|
+
"prefer-strict-equal": eslint.Rule.RuleModule;
|
|
4793
|
+
"prefer-to-be": eslint.Rule.RuleModule;
|
|
4794
|
+
"prefer-to-contain": eslint.Rule.RuleModule;
|
|
4795
|
+
"prefer-to-have-count": eslint.Rule.RuleModule;
|
|
4796
|
+
"prefer-to-have-length": eslint.Rule.RuleModule;
|
|
4797
|
+
"prefer-web-first-assertions": eslint.Rule.RuleModule;
|
|
4798
|
+
"require-hook": eslint.Rule.RuleModule;
|
|
4799
|
+
"require-soft-assertions": eslint.Rule.RuleModule;
|
|
4800
|
+
"require-to-throw-message": eslint.Rule.RuleModule;
|
|
4801
|
+
"require-top-level-describe": eslint.Rule.RuleModule;
|
|
4802
|
+
"valid-describe-callback": eslint.Rule.RuleModule;
|
|
4803
|
+
"valid-expect": eslint.Rule.RuleModule;
|
|
4804
|
+
"valid-expect-in-promise": eslint.Rule.RuleModule;
|
|
4805
|
+
"valid-title": eslint.Rule.RuleModule;
|
|
4806
|
+
};
|
|
4807
|
+
};
|
|
4808
|
+
};
|
|
4809
|
+
rules: {
|
|
4810
|
+
readonly "no-empty-pattern": "off";
|
|
4811
|
+
readonly "playwright/expect-expect": "warn";
|
|
4812
|
+
readonly "playwright/max-nested-describe": "warn";
|
|
4813
|
+
readonly "playwright/missing-playwright-await": "error";
|
|
4814
|
+
readonly "playwright/no-conditional-expect": "warn";
|
|
4815
|
+
readonly "playwright/no-conditional-in-test": "warn";
|
|
4816
|
+
readonly "playwright/no-element-handle": "warn";
|
|
4817
|
+
readonly "playwright/no-eval": "warn";
|
|
4818
|
+
readonly "playwright/no-focused-test": "error";
|
|
4819
|
+
readonly "playwright/no-force-option": "warn";
|
|
4820
|
+
readonly "playwright/no-nested-step": "warn";
|
|
4821
|
+
readonly "playwright/no-networkidle": "error";
|
|
4822
|
+
readonly "playwright/no-page-pause": "warn";
|
|
4823
|
+
readonly "playwright/no-skipped-test": "warn";
|
|
4824
|
+
readonly "playwright/no-standalone-expect": "error";
|
|
4825
|
+
readonly "playwright/no-unsafe-references": "error";
|
|
4826
|
+
readonly "playwright/no-useless-await": "warn";
|
|
4827
|
+
readonly "playwright/no-useless-not": "warn";
|
|
4828
|
+
readonly "playwright/no-wait-for-selector": "warn";
|
|
4829
|
+
readonly "playwright/no-wait-for-timeout": "warn";
|
|
4830
|
+
readonly "playwright/prefer-web-first-assertions": "error";
|
|
4831
|
+
readonly "playwright/valid-describe-callback": "error";
|
|
4832
|
+
readonly "playwright/valid-expect": "error";
|
|
4833
|
+
readonly "playwright/valid-expect-in-promise": "error";
|
|
4834
|
+
readonly "playwright/valid-title": "error";
|
|
4835
|
+
};
|
|
4836
|
+
files: string[];
|
|
4650
4837
|
})[];
|
|
4651
4838
|
|
|
4652
4839
|
export { _default as default, reactPreset, vuePreset, vueSkyline };
|
package/dist/index.js
CHANGED
|
@@ -24,9 +24,9 @@ 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.11.1/node_modules/@eslint/js/src/configs/eslint-all.js
|
|
28
28
|
var require_eslint_all = __commonJS({
|
|
29
|
-
"../../node_modules/.pnpm/@eslint+js@9.
|
|
29
|
+
"../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/configs/eslint-all.js"(exports, module) {
|
|
30
30
|
"use strict";
|
|
31
31
|
module.exports = Object.freeze({
|
|
32
32
|
"rules": {
|
|
@@ -232,9 +232,9 @@ var require_eslint_all = __commonJS({
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
// ../../node_modules/.pnpm/@eslint+js@9.
|
|
235
|
+
// ../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/configs/eslint-recommended.js
|
|
236
236
|
var require_eslint_recommended = __commonJS({
|
|
237
|
-
"../../node_modules/.pnpm/@eslint+js@9.
|
|
237
|
+
"../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/configs/eslint-recommended.js"(exports, module) {
|
|
238
238
|
"use strict";
|
|
239
239
|
module.exports = Object.freeze({
|
|
240
240
|
rules: Object.freeze({
|
|
@@ -304,9 +304,9 @@ var require_eslint_recommended = __commonJS({
|
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
306
|
|
|
307
|
-
// ../../node_modules/.pnpm/@eslint+js@9.
|
|
307
|
+
// ../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/index.js
|
|
308
308
|
var require_src = __commonJS({
|
|
309
|
-
"../../node_modules/.pnpm/@eslint+js@9.
|
|
309
|
+
"../../node_modules/.pnpm/@eslint+js@9.11.1/node_modules/@eslint/js/src/index.js"(exports, module) {
|
|
310
310
|
"use strict";
|
|
311
311
|
module.exports = {
|
|
312
312
|
configs: {
|
|
@@ -336,6 +336,7 @@ import { default as default15 } from "eslint-plugin-testing-library";
|
|
|
336
336
|
import { default as default16 } from "eslint-plugin-regexp";
|
|
337
337
|
import { default as default17 } from "eslint-plugin-import";
|
|
338
338
|
import { default as default18 } from "eslint-plugin-markdown";
|
|
339
|
+
import { default as default19 } from "@eslint-community/eslint-plugin-eslint-comments/configs";
|
|
339
340
|
|
|
340
341
|
// configs/javascript.ts
|
|
341
342
|
var isProduction = process.env.NODE_ENV === "production";
|
|
@@ -489,6 +490,20 @@ var prettierConfig = {
|
|
|
489
490
|
}
|
|
490
491
|
};
|
|
491
492
|
|
|
493
|
+
// configs/comments.ts
|
|
494
|
+
var commentsConfigs = [
|
|
495
|
+
{
|
|
496
|
+
...default19.recommended,
|
|
497
|
+
name: "component-hook/comments/recommended"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: "component-hook/comments",
|
|
501
|
+
rules: {
|
|
502
|
+
"@eslint-community/eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }]
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
];
|
|
506
|
+
|
|
492
507
|
// configs/sonarjs.ts
|
|
493
508
|
var plugins2 = {
|
|
494
509
|
sonarjs: fixupPluginRules(default12)
|
|
@@ -501,11 +516,7 @@ var sonarjsConfigs = [
|
|
|
501
516
|
rules: {
|
|
502
517
|
...default12.configs.recommended.rules,
|
|
503
518
|
"sonarjs/no-commented-code": "warn",
|
|
504
|
-
"sonarjs/no-vue-bypass-sanitization": "warn"
|
|
505
|
-
// TypeError: Cannot read properties of undefined (reading 'members')
|
|
506
|
-
"sonarjs/prefer-enum-initializers": "off",
|
|
507
|
-
// TypeError: Cannot read properties of undefined (reading 'some')
|
|
508
|
-
"sonarjs/sonar-no-fallthrough": "off"
|
|
519
|
+
"sonarjs/no-vue-bypass-sanitization": "warn"
|
|
509
520
|
},
|
|
510
521
|
settings
|
|
511
522
|
},
|
|
@@ -748,6 +759,7 @@ var ignores = {
|
|
|
748
759
|
var basicConfigs = [
|
|
749
760
|
...jsConfigs,
|
|
750
761
|
...typescriptConfigs,
|
|
762
|
+
...commentsConfigs,
|
|
751
763
|
...importConfigs,
|
|
752
764
|
regexpConfig,
|
|
753
765
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@component-hook/eslint-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5-alpha.1",
|
|
4
4
|
"description": "ESLint config for component hook",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,22 +33,23 @@
|
|
|
33
33
|
"eslint": "^9.8.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
36
37
|
"@eslint/compat": "^1.1.1",
|
|
37
38
|
"eslint-config-prettier": "^9.1.0",
|
|
38
|
-
"eslint-plugin-import": "^2.
|
|
39
|
+
"eslint-plugin-import": "^2.31.0",
|
|
39
40
|
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
40
41
|
"eslint-plugin-markdown": "^5.1.0",
|
|
41
42
|
"eslint-plugin-playwright": "^1.6.2",
|
|
42
43
|
"eslint-plugin-prettier": "^5.2.1",
|
|
43
|
-
"eslint-plugin-react": "^7.
|
|
44
|
+
"eslint-plugin-react": "^7.37.1",
|
|
44
45
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
45
46
|
"eslint-plugin-regexp": "^2.6.0",
|
|
46
47
|
"eslint-plugin-security": "^3.0.1",
|
|
47
|
-
"eslint-plugin-sonarjs": "^2.0.
|
|
48
|
+
"eslint-plugin-sonarjs": "^2.0.3",
|
|
48
49
|
"eslint-plugin-testing-library": "^6.3.0",
|
|
49
50
|
"eslint-plugin-vue": "^9.28.0",
|
|
50
|
-
"globals": "^15.
|
|
51
|
-
"typescript-eslint": "^8.
|
|
51
|
+
"globals": "^15.10.0",
|
|
52
|
+
"typescript-eslint": "^8.8.0",
|
|
52
53
|
"vue-eslint-parser": "^9.4.3"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"@types/eslint": "^9.6.1",
|
|
57
58
|
"@types/eslint-plugin-security": "^3.0.0",
|
|
58
59
|
"@types/eslint__js": "^8.42.3",
|
|
59
|
-
"tsup": "^8.
|
|
60
|
+
"tsup": "^8.3.0"
|
|
60
61
|
},
|
|
61
62
|
"scripts": {
|
|
62
63
|
"dev": "eslint-config-inspector --config ../../eslint.config.js",
|