@vinicunca/eslint-config 3.11.0 → 3.13.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +546 -379
  2. package/dist/index.js +16 -14
  3. package/package.json +15 -15
package/dist/index.js CHANGED
@@ -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": "error",
1424
- "react-dom/no-hydrate": "error",
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": "error",
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": "error",
1434
- "react-dom/no-void-elements-with-children": "error",
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": "warn",
1440
- "react-hooks-extra/no-unnecessary-use-prefix": "warn",
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": "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",
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,
@@ -1644,6 +1644,7 @@ async function sortPackageJson() {
1644
1644
  "keywords",
1645
1645
  "categories",
1646
1646
  "sideEffects",
1647
+ "imports",
1647
1648
  "exports",
1648
1649
  "main",
1649
1650
  "module",
@@ -1891,7 +1892,7 @@ async function svelte(options = {}) {
1891
1892
  varsIgnorePattern: "^(\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)"
1892
1893
  }],
1893
1894
  "svelte/comment-directive": ERROR,
1894
- "svelte/no-at-debug-tags": "warn",
1895
+ "svelte/no-at-debug-tags": WARN,
1895
1896
  "svelte/no-at-html-tags": ERROR,
1896
1897
  "svelte/no-dupe-else-if-blocks": ERROR,
1897
1898
  "svelte/no-dupe-style-properties": ERROR,
@@ -2390,8 +2391,9 @@ async function vue(options = {}) {
2390
2391
  ERROR,
2391
2392
  "camelCase",
2392
2393
  {
2393
- // This will allow using lower case separated with a colon (e.g. click:row)
2394
- ignores: [/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u]
2394
+ ignores: [
2395
+ "/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u"
2396
+ ]
2395
2397
  }
2396
2398
  ],
2397
2399
  "vue/define-macros-order": [ERROR, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
3
  "type": "module",
4
- "version": "3.11.0",
4
+ "version": "3.13.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.19.0",
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",
@@ -109,35 +109,35 @@
109
109
  }
110
110
  },
111
111
  "dependencies": {
112
- "@antfu/install-pkg": "^1.0.0",
113
- "@clack/prompts": "^0.10.0",
114
- "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
115
- "@eslint/markdown": "^6.3.0",
112
+ "@antfu/install-pkg": "^1.1.0",
113
+ "@clack/prompts": "^0.10.1",
114
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
115
+ "@eslint/markdown": "^6.4.0",
116
116
  "@stylistic/eslint-plugin": "^4.2.0",
117
- "@typescript-eslint/eslint-plugin": "^8.29.1",
118
- "@typescript-eslint/parser": "^8.29.1",
117
+ "@typescript-eslint/eslint-plugin": "^8.32.0",
118
+ "@typescript-eslint/parser": "^8.32.0",
119
119
  "@unocss/eslint-plugin": "^66.0.0",
120
- "@vitest/eslint-plugin": "^1.1.39",
120
+ "@vitest/eslint-plugin": "^1.1.44",
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.10.2",
128
- "eslint-plugin-jsdoc": "^50.6.9",
127
+ "eslint-plugin-import-x": "^4.11.0",
128
+ "eslint-plugin-jsdoc": "^50.6.11",
129
129
  "eslint-plugin-jsonc": "^2.20.0",
130
130
  "eslint-plugin-n": "^17.17.0",
131
131
  "eslint-plugin-no-only-tests": "^3.3.0",
132
- "eslint-plugin-perfectionist": "^4.11.0",
132
+ "eslint-plugin-perfectionist": "^4.12.3",
133
133
  "eslint-plugin-pnpm": "^0.3.1",
134
134
  "eslint-plugin-regexp": "^2.7.0",
135
135
  "eslint-plugin-sonarjs": "^3.0.2",
136
136
  "eslint-plugin-toml": "^0.12.0",
137
- "eslint-plugin-unicorn": "^58.0.0",
137
+ "eslint-plugin-unicorn": "^59.0.1",
138
138
  "eslint-plugin-unused-imports": "^4.1.4",
139
- "eslint-plugin-vue": "^10.0.0",
140
- "eslint-plugin-yml": "^1.17.0",
139
+ "eslint-plugin-vue": "^10.1.0",
140
+ "eslint-plugin-yml": "^1.18.0",
141
141
  "eslint-processor-vue-blocks": "^2.0.0",
142
142
  "globals": "^16.0.0",
143
143
  "jsonc-eslint-parser": "^2.4.0",