@component-hook/eslint-plugin 0.1.6-alpha.0 → 0.1.6
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.js +2 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -79,21 +79,21 @@ 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-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`
|
|
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
97
|
|
|
98
98
|
## Reference eslint plugin
|
|
99
99
|
|
|
@@ -101,6 +101,7 @@ export default vuePreset;
|
|
|
101
101
|
- [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)
|
|
102
102
|
- [eslint-plugin-eslint-comments](https://github.com/eslint-community/eslint-plugin-eslint-comments/blob/main/lib/configs/recommended.js)
|
|
103
103
|
- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
|
|
104
|
+
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
104
105
|
- [eslint-plugin-regexp/flat/recommended](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/configs/flat/recommended.ts)
|
|
105
106
|
- [eslint-plugin-prettier/recommended](https://github.com/prettier/eslint-plugin-prettier/blob/master/recommended.js)
|
|
106
107
|
- [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier/blob/main/index.js)
|
package/dist/index.js
CHANGED
|
@@ -628,14 +628,9 @@ var reactConfigs = [
|
|
|
628
628
|
}
|
|
629
629
|
},
|
|
630
630
|
{
|
|
631
|
+
...default6.configs.recommended,
|
|
631
632
|
name: "component-hook/react-hooks",
|
|
632
|
-
files: ["**/*.[jt]s?(x)"]
|
|
633
|
-
plugins: {
|
|
634
|
-
"react-hooks": fixupPluginRules({ rules: default6.rules })
|
|
635
|
-
},
|
|
636
|
-
rules: {
|
|
637
|
-
...default6.configs.recommended.rules
|
|
638
|
-
}
|
|
633
|
+
files: ["**/*.[jt]s?(x)"]
|
|
639
634
|
},
|
|
640
635
|
{
|
|
641
636
|
...default7.flatConfigs.recommended,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@component-hook/eslint-plugin",
|
|
3
|
-
"version": "0.1.6
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "ESLint config for component hook",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-playwright": "^1.7.0",
|
|
43
43
|
"eslint-plugin-prettier": "^5.2.1",
|
|
44
44
|
"eslint-plugin-react": "^7.37.1",
|
|
45
|
-
"eslint-plugin-react-hooks": "^
|
|
45
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
46
46
|
"eslint-plugin-regexp": "^2.6.0",
|
|
47
47
|
"eslint-plugin-security": "^3.0.1",
|
|
48
48
|
"eslint-plugin-sonarjs": "^2.0.3",
|