@component-hook/eslint-plugin 0.2.5 → 1.0.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 +10 -8
- package/dist/index.js +11 -11
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -53,26 +53,28 @@ export default [
|
|
|
53
53
|
files: ['**/__tests__/e2e/**/*.spec.[jt]s?(x)'],
|
|
54
54
|
...componentHookPlugin.configs.playwright,
|
|
55
55
|
},
|
|
56
|
-
//
|
|
56
|
+
// your custom config
|
|
57
57
|
];
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
See [basic](./index.ts) and [ignores](./configs/ignores.ts) for more details.
|
|
61
61
|
|
|
62
|
-
## Presets Usage
|
|
62
|
+
## React Presets Usage
|
|
63
|
+
|
|
64
|
+
Includes `basic`, `react`, `markdown`, `prettier`, `sonarjs`, `security` configs.
|
|
63
65
|
|
|
64
66
|
```js
|
|
65
|
-
import {
|
|
66
|
-
reactPreset, // Includes basic, react, markdown, prettier, sonarjs, security configs
|
|
67
|
-
} from '@component-hook/eslint-plugin';
|
|
67
|
+
import { reactPreset } from '@component-hook/eslint-plugin';
|
|
68
68
|
|
|
69
69
|
export default reactPreset;
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
+
## Vue Presets Usage
|
|
73
|
+
|
|
74
|
+
Includes `basic`, `vue`, `markdown`, `prettier`, `sonarjs`, `security` configs.
|
|
75
|
+
|
|
72
76
|
```js
|
|
73
|
-
import {
|
|
74
|
-
vuePreset, // Includes basic, vue, markdown, prettier, sonarjs, security configs
|
|
75
|
-
} from '@component-hook/eslint-plugin';
|
|
77
|
+
import { vuePreset } from '@component-hook/eslint-plugin';
|
|
76
78
|
|
|
77
79
|
export default vuePreset;
|
|
78
80
|
```
|
package/dist/index.js
CHANGED
|
@@ -24,12 +24,12 @@ 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.18.0/node_modules/@eslint/js/package.json
|
|
28
28
|
var require_package = __commonJS({
|
|
29
|
-
"../../node_modules/.pnpm/@eslint+js@9.
|
|
29
|
+
"../../node_modules/.pnpm/@eslint+js@9.18.0/node_modules/@eslint/js/package.json"(exports, module) {
|
|
30
30
|
module.exports = {
|
|
31
31
|
name: "@eslint/js",
|
|
32
|
-
version: "9.
|
|
32
|
+
version: "9.18.0",
|
|
33
33
|
description: "ESLint JavaScript language implementation",
|
|
34
34
|
main: "./src/index.js",
|
|
35
35
|
types: "./types/index.d.ts",
|
|
@@ -65,9 +65,9 @@ var require_package = __commonJS({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
// ../../node_modules/.pnpm/@eslint+js@9.
|
|
68
|
+
// ../../node_modules/.pnpm/@eslint+js@9.18.0/node_modules/@eslint/js/src/configs/eslint-all.js
|
|
69
69
|
var require_eslint_all = __commonJS({
|
|
70
|
-
"../../node_modules/.pnpm/@eslint+js@9.
|
|
70
|
+
"../../node_modules/.pnpm/@eslint+js@9.18.0/node_modules/@eslint/js/src/configs/eslint-all.js"(exports, module) {
|
|
71
71
|
"use strict";
|
|
72
72
|
module.exports = Object.freeze({
|
|
73
73
|
"rules": {
|
|
@@ -273,9 +273,9 @@ var require_eslint_all = __commonJS({
|
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
|
|
276
|
-
// ../../node_modules/.pnpm/@eslint+js@9.
|
|
276
|
+
// ../../node_modules/.pnpm/@eslint+js@9.18.0/node_modules/@eslint/js/src/configs/eslint-recommended.js
|
|
277
277
|
var require_eslint_recommended = __commonJS({
|
|
278
|
-
"../../node_modules/.pnpm/@eslint+js@9.
|
|
278
|
+
"../../node_modules/.pnpm/@eslint+js@9.18.0/node_modules/@eslint/js/src/configs/eslint-recommended.js"(exports, module) {
|
|
279
279
|
"use strict";
|
|
280
280
|
module.exports = Object.freeze({
|
|
281
281
|
rules: Object.freeze({
|
|
@@ -345,14 +345,14 @@ var require_eslint_recommended = __commonJS({
|
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
347
|
|
|
348
|
-
// ../../node_modules/.pnpm/@eslint+js@9.
|
|
348
|
+
// ../../node_modules/.pnpm/@eslint+js@9.18.0/node_modules/@eslint/js/src/index.js
|
|
349
349
|
var require_src = __commonJS({
|
|
350
|
-
"../../node_modules/.pnpm/@eslint+js@9.
|
|
350
|
+
"../../node_modules/.pnpm/@eslint+js@9.18.0/node_modules/@eslint/js/src/index.js"(exports, module) {
|
|
351
351
|
"use strict";
|
|
352
|
-
var { version } = require_package();
|
|
352
|
+
var { name, version } = require_package();
|
|
353
353
|
module.exports = {
|
|
354
354
|
meta: {
|
|
355
|
-
name
|
|
355
|
+
name,
|
|
356
356
|
version
|
|
357
357
|
},
|
|
358
358
|
configs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@component-hook/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "ESLint config for component hook",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
37
|
-
"@eslint/compat": "^1.2.
|
|
37
|
+
"@eslint/compat": "^1.2.5",
|
|
38
38
|
"eslint-config-prettier": "^9.1.0",
|
|
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
42
|
"eslint-plugin-playwright": "^2.1.0",
|
|
43
|
-
"eslint-plugin-prettier": "^5.2.
|
|
44
|
-
"eslint-plugin-react": "^7.37.
|
|
43
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
44
|
+
"eslint-plugin-react": "^7.37.4",
|
|
45
45
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
46
46
|
"eslint-plugin-regexp": "^2.7.0",
|
|
47
47
|
"eslint-plugin-security": "^3.0.1",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
51
51
|
"eslint-plugin-vue": "^9.32.0",
|
|
52
52
|
"globals": "^15.14.0",
|
|
53
|
-
"typescript-eslint": "^8.
|
|
53
|
+
"typescript-eslint": "^8.21.0",
|
|
54
54
|
"vue-eslint-parser": "^9.4.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@eslint/config-inspector": "^0.
|
|
57
|
+
"@eslint/config-inspector": "^1.0.0",
|
|
58
58
|
"@types/eslint": "^9.6.1",
|
|
59
59
|
"@types/eslint-plugin-security": "^3.0.0",
|
|
60
60
|
"@types/eslint__js": "^8.42.3"
|