@vinicunca/eslint-config 3.10.0 → 3.12.0
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.d.ts +359 -151
- package/dist/index.js +24 -16
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
1
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.5.0/node_modules/@vinicunca/perkakas/dist/chunk-6AFNPQW2.js
|
|
2
2
|
function r(o) {
|
|
3
3
|
if (typeof o != "object" || o === null) return false;
|
|
4
4
|
let e3 = Object.getPrototypeOf(o);
|
|
5
5
|
return e3 === null || e3 === Object.prototype;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
8
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.5.0/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
|
|
9
9
|
function e(r2) {
|
|
10
10
|
return typeof r2 == "number" && !Number.isNaN(r2);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
13
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.5.0/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
|
|
14
14
|
function e2(o) {
|
|
15
15
|
return typeof o == "boolean";
|
|
16
16
|
}
|
|
@@ -1420,29 +1420,29 @@ async function react(options = {}) {
|
|
|
1420
1420
|
"react-dom/no-dangerously-set-innerhtml": WARN,
|
|
1421
1421
|
"react-dom/no-dangerously-set-innerhtml-with-children": ERROR,
|
|
1422
1422
|
"react-dom/no-find-dom-node": ERROR,
|
|
1423
|
-
"react-dom/no-flush-sync":
|
|
1424
|
-
"react-dom/no-hydrate":
|
|
1423
|
+
"react-dom/no-flush-sync": ERROR,
|
|
1424
|
+
"react-dom/no-hydrate": ERROR,
|
|
1425
1425
|
"react-dom/no-missing-button-type": WARN,
|
|
1426
1426
|
"react-dom/no-missing-iframe-sandbox": WARN,
|
|
1427
1427
|
"react-dom/no-namespace": ERROR,
|
|
1428
|
-
"react-dom/no-render":
|
|
1428
|
+
"react-dom/no-render": ERROR,
|
|
1429
1429
|
"react-dom/no-render-return-value": ERROR,
|
|
1430
1430
|
"react-dom/no-script-url": WARN,
|
|
1431
1431
|
"react-dom/no-unsafe-iframe-sandbox": WARN,
|
|
1432
1432
|
"react-dom/no-unsafe-target-blank": WARN,
|
|
1433
|
-
"react-dom/no-use-form-state":
|
|
1434
|
-
"react-dom/no-void-elements-with-children":
|
|
1433
|
+
"react-dom/no-use-form-state": ERROR,
|
|
1434
|
+
"react-dom/no-void-elements-with-children": ERROR,
|
|
1435
1435
|
// recommended rules eslint-plugin-react-hooks https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks/src/rules
|
|
1436
1436
|
"react-hooks/exhaustive-deps": WARN,
|
|
1437
1437
|
"react-hooks/rules-of-hooks": ERROR,
|
|
1438
1438
|
// recommended rules from eslint-plugin-react-hooks-extra https://eslint-react.xyz/docs/rules/overview#hooks-extra-rules
|
|
1439
|
-
"react-hooks-extra/no-direct-set-state-in-use-effect":
|
|
1440
|
-
"react-hooks-extra/no-unnecessary-use-prefix":
|
|
1439
|
+
"react-hooks-extra/no-direct-set-state-in-use-effect": WARN,
|
|
1440
|
+
"react-hooks-extra/no-unnecessary-use-prefix": WARN,
|
|
1441
1441
|
// recommended rules from eslint-plugin-react-web-api https://eslint-react.xyz/docs/rules/overview#web-api-rules
|
|
1442
|
-
"react-web-api/no-leaked-event-listener":
|
|
1443
|
-
"react-web-api/no-leaked-interval":
|
|
1444
|
-
"react-web-api/no-leaked-resize-observer":
|
|
1445
|
-
"react-web-api/no-leaked-timeout":
|
|
1442
|
+
"react-web-api/no-leaked-event-listener": WARN,
|
|
1443
|
+
"react-web-api/no-leaked-interval": WARN,
|
|
1444
|
+
"react-web-api/no-leaked-resize-observer": WARN,
|
|
1445
|
+
"react-web-api/no-leaked-timeout": WARN,
|
|
1446
1446
|
// preconfigured rules from eslint-plugin-react-refresh https://github.com/ArnaudBarre/eslint-plugin-react-refresh/tree/main/src
|
|
1447
1447
|
"react-refresh/only-export-components": [
|
|
1448
1448
|
WARN,
|
|
@@ -1891,7 +1891,7 @@ async function svelte(options = {}) {
|
|
|
1891
1891
|
varsIgnorePattern: "^(\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)"
|
|
1892
1892
|
}],
|
|
1893
1893
|
"svelte/comment-directive": ERROR,
|
|
1894
|
-
"svelte/no-at-debug-tags":
|
|
1894
|
+
"svelte/no-at-debug-tags": WARN,
|
|
1895
1895
|
"svelte/no-at-html-tags": ERROR,
|
|
1896
1896
|
"svelte/no-dupe-else-if-blocks": ERROR,
|
|
1897
1897
|
"svelte/no-dupe-style-properties": ERROR,
|
|
@@ -2386,7 +2386,15 @@ async function vue(options = {}) {
|
|
|
2386
2386
|
}],
|
|
2387
2387
|
"vue/component-name-in-template-casing": [ERROR, "PascalCase"],
|
|
2388
2388
|
"vue/component-options-name-casing": [ERROR, "PascalCase"],
|
|
2389
|
-
"vue/custom-event-name-casing": [
|
|
2389
|
+
"vue/custom-event-name-casing": [
|
|
2390
|
+
ERROR,
|
|
2391
|
+
"camelCase",
|
|
2392
|
+
{
|
|
2393
|
+
ignores: [
|
|
2394
|
+
"/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u"
|
|
2395
|
+
]
|
|
2396
|
+
}
|
|
2397
|
+
],
|
|
2390
2398
|
"vue/define-macros-order": [ERROR, {
|
|
2391
2399
|
order: ["defineOptions", "defineProps", "defineEmits", "defineSlots"]
|
|
2392
2400
|
}],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.12.0",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"node": ">=22.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
55
|
+
"@eslint-react/eslint-plugin": "^1.38.4",
|
|
56
56
|
"@prettier/plugin-xml": "^3.4.1",
|
|
57
57
|
"astro-eslint-parser": "^1.0.2",
|
|
58
58
|
"eslint": "^9.10.0",
|
|
@@ -110,26 +110,26 @@
|
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
112
|
"@antfu/install-pkg": "^1.0.0",
|
|
113
|
-
"@clack/prompts": "^0.10.
|
|
113
|
+
"@clack/prompts": "^0.10.1",
|
|
114
114
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
115
115
|
"@eslint/markdown": "^6.3.0",
|
|
116
116
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
117
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
118
|
-
"@typescript-eslint/parser": "^8.
|
|
119
|
-
"@unocss/eslint-plugin": "^66.
|
|
120
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
117
|
+
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
118
|
+
"@typescript-eslint/parser": "^8.29.1",
|
|
119
|
+
"@unocss/eslint-plugin": "^66.0.0",
|
|
120
|
+
"@vitest/eslint-plugin": "^1.1.40",
|
|
121
121
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
122
122
|
"eslint-flat-config-utils": "^2.0.1",
|
|
123
123
|
"eslint-merge-processors": "^2.0.0",
|
|
124
124
|
"eslint-plugin-antfu": "^3.1.1",
|
|
125
125
|
"eslint-plugin-command": "^3.2.0",
|
|
126
126
|
"eslint-plugin-format": "^1.0.1",
|
|
127
|
-
"eslint-plugin-import-x": "^4.
|
|
127
|
+
"eslint-plugin-import-x": "^4.10.2",
|
|
128
128
|
"eslint-plugin-jsdoc": "^50.6.9",
|
|
129
129
|
"eslint-plugin-jsonc": "^2.20.0",
|
|
130
|
-
"eslint-plugin-n": "^17.
|
|
130
|
+
"eslint-plugin-n": "^17.17.0",
|
|
131
131
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
132
|
-
"eslint-plugin-perfectionist": "^4.
|
|
132
|
+
"eslint-plugin-perfectionist": "^4.11.0",
|
|
133
133
|
"eslint-plugin-pnpm": "^0.3.1",
|
|
134
134
|
"eslint-plugin-regexp": "^2.7.0",
|
|
135
135
|
"eslint-plugin-sonarjs": "^3.0.2",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"jsonc-eslint-parser": "^2.4.0",
|
|
144
144
|
"local-pkg": "^1.1.1",
|
|
145
145
|
"toml-eslint-parser": "^0.10.0",
|
|
146
|
-
"vue-eslint-parser": "^10.1.
|
|
146
|
+
"vue-eslint-parser": "^10.1.3",
|
|
147
147
|
"yaml-eslint-parser": "^1.3.0"
|
|
148
148
|
},
|
|
149
149
|
"scripts": {
|