@ethang/eslint-config 25.22.1 → 25.23.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/README.md CHANGED
@@ -28,9 +28,9 @@
28
28
  * 61 rules for **HTML**
29
29
  * `import htmlConfig from "@ethang/eslint-config/config.html.js";`
30
30
  * 61 rules from [@html-eslint/eslint-plugin](https://github.com/html-eslint/html-eslint)
31
- * 54 rules for **Astro**
31
+ * 55 rules for **Astro**
32
32
  * `import astroConfig from "@ethang/eslint-config/config.astro.js";`
33
- * 54 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
33
+ * 55 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
34
34
  * 169 rules for **React**
35
35
  * `import reactConfig from "@ethang/eslint-config/config.react.js";`
36
36
  * 140 rules from [@eslint-react/eslint-plugin](https://eslint-react.xyz/)
package/config.astro.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as r,b as e}from"./chunk-QHEC6VHK.js";import{defineConfig as o,globalIgnores as a}from"eslint/config";import s from"eslint-plugin-astro";var l=o(a(r),{files:["**/*.{astro}"],languageOptions:e,plugins:{astro:s},rules:{"astro/jsx-a11y/alt-text":"error","astro/jsx-a11y/anchor-ambiguous-text":"error","astro/jsx-a11y/anchor-has-content":"error","astro/jsx-a11y/anchor-is-valid":"error","astro/jsx-a11y/aria-activedescendant-has-tabindex":"error","astro/jsx-a11y/aria-props":"error","astro/jsx-a11y/aria-proptypes":"error","astro/jsx-a11y/aria-role":"error","astro/jsx-a11y/aria-unsupported-elements":"error","astro/jsx-a11y/autocomplete-valid":"error","astro/jsx-a11y/click-events-have-key-events":"error","astro/jsx-a11y/control-has-associated-label":"error","astro/jsx-a11y/heading-has-content":"error","astro/jsx-a11y/html-has-lang":"error","astro/jsx-a11y/iframe-has-title":"error","astro/jsx-a11y/img-redundant-alt":"error","astro/jsx-a11y/interactive-supports-focus":"error","astro/jsx-a11y/label-has-associated-control":"error","astro/jsx-a11y/lang":"error","astro/jsx-a11y/media-has-caption":"error","astro/jsx-a11y/mouse-events-have-key-events":"error","astro/jsx-a11y/no-access-key":"error","astro/jsx-a11y/no-aria-hidden-on-focusable":"error","astro/jsx-a11y/no-autofocus":"error","astro/jsx-a11y/no-distracting-elements":"error","astro/jsx-a11y/no-interactive-element-to-noninteractive-role":"error","astro/jsx-a11y/no-noninteractive-element-interactions":"error","astro/jsx-a11y/no-noninteractive-element-to-interactive-role":"error","astro/jsx-a11y/no-noninteractive-tabindex":"error","astro/jsx-a11y/no-redundant-roles":"error","astro/jsx-a11y/no-static-element-interactions":"error","astro/jsx-a11y/prefer-tag-over-role":"error","astro/jsx-a11y/role-has-required-aria-props":"error","astro/jsx-a11y/role-supports-aria-props":"error","astro/jsx-a11y/scope":"error","astro/jsx-a11y/tabindex-no-positive":"error","astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-exports-from-components":"error","astro/no-prerender-export-outside-pages":"error","astro/no-set-html-directive":"off","astro/no-set-text-directive":"error","astro/no-unsafe-inline-scripts":"error","astro/no-unused-css-selector":"error","astro/no-unused-define-vars-in-style":"error","astro/prefer-class-list-directive":"error","astro/prefer-object-class-list":"error","astro/prefer-split-class-list":"error","astro/semi":"error","astro/sort-attributes":"error","astro/valid-compile":"error"}});export{l as default};
1
+ import{a as r,b as e}from"./chunk-QHEC6VHK.js";import{defineConfig as o,globalIgnores as a}from"eslint/config";import s from"eslint-plugin-astro";var l=o(a(r),{files:["**/*.{astro}"],languageOptions:e,plugins:{astro:s},rules:{"astro/jsx-a11y/alt-text":"error","astro/jsx-a11y/anchor-ambiguous-text":"error","astro/jsx-a11y/anchor-has-content":"error","astro/jsx-a11y/anchor-is-valid":"error","astro/jsx-a11y/aria-activedescendant-has-tabindex":"error","astro/jsx-a11y/aria-props":"error","astro/jsx-a11y/aria-proptypes":"error","astro/jsx-a11y/aria-role":"error","astro/jsx-a11y/aria-unsupported-elements":"error","astro/jsx-a11y/autocomplete-valid":"error","astro/jsx-a11y/click-events-have-key-events":"error","astro/jsx-a11y/control-has-associated-label":"error","astro/jsx-a11y/heading-has-content":"error","astro/jsx-a11y/html-has-lang":"error","astro/jsx-a11y/iframe-has-title":"error","astro/jsx-a11y/img-redundant-alt":"error","astro/jsx-a11y/interactive-supports-focus":"error","astro/jsx-a11y/label-has-associated-control":"error","astro/jsx-a11y/lang":"error","astro/jsx-a11y/media-has-caption":"error","astro/jsx-a11y/mouse-events-have-key-events":"error","astro/jsx-a11y/no-access-key":"error","astro/jsx-a11y/no-aria-hidden-on-focusable":"error","astro/jsx-a11y/no-autofocus":"error","astro/jsx-a11y/no-distracting-elements":"error","astro/jsx-a11y/no-interactive-element-to-noninteractive-role":"error","astro/jsx-a11y/no-noninteractive-element-interactions":"error","astro/jsx-a11y/no-noninteractive-element-to-interactive-role":"error","astro/jsx-a11y/no-noninteractive-tabindex":"error","astro/jsx-a11y/no-redundant-roles":"error","astro/jsx-a11y/no-static-element-interactions":"error","astro/jsx-a11y/prefer-tag-over-role":"error","astro/jsx-a11y/role-has-required-aria-props":"error","astro/jsx-a11y/role-supports-aria-props":"error","astro/jsx-a11y/scope":"error","astro/jsx-a11y/tabindex-no-positive":"error","astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-exports-from-components":"error","astro/no-omitted-end-tags":"error","astro/no-prerender-export-outside-pages":"error","astro/no-set-html-directive":"off","astro/no-set-text-directive":"error","astro/no-unsafe-inline-scripts":"error","astro/no-unused-css-selector":"error","astro/no-unused-define-vars-in-style":"error","astro/prefer-class-list-directive":"error","astro/prefer-object-class-list":"error","astro/prefer-split-class-list":"error","astro/semi":"error","astro/sort-attributes":"error","astro/valid-compile":"error"}});export{l as default};
2
2
  //# sourceMappingURL=config.astro.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/config.astro.js"],"sourcesContent":["// @ts-nocheck\nimport { defineConfig, globalIgnores } from \"eslint/config\";\nimport { ignores, languageOptions } from \"./constants.js\";\nimport astro from \"eslint-plugin-astro\";\n\nexport default defineConfig(\n globalIgnores(ignores),\n{\n files: [\"**/*.{astro}\"],\nlanguageOptions,\n plugins: {\n \"astro\": astro,\n },\n rules: {\n \"astro/jsx-a11y/alt-text\": \"error\",\n \"astro/jsx-a11y/anchor-ambiguous-text\": \"error\",\n \"astro/jsx-a11y/anchor-has-content\": \"error\",\n \"astro/jsx-a11y/anchor-is-valid\": \"error\",\n \"astro/jsx-a11y/aria-activedescendant-has-tabindex\": \"error\",\n \"astro/jsx-a11y/aria-props\": \"error\",\n \"astro/jsx-a11y/aria-proptypes\": \"error\",\n \"astro/jsx-a11y/aria-role\": \"error\",\n \"astro/jsx-a11y/aria-unsupported-elements\": \"error\",\n \"astro/jsx-a11y/autocomplete-valid\": \"error\",\n \"astro/jsx-a11y/click-events-have-key-events\": \"error\",\n \"astro/jsx-a11y/control-has-associated-label\": \"error\",\n \"astro/jsx-a11y/heading-has-content\": \"error\",\n \"astro/jsx-a11y/html-has-lang\": \"error\",\n \"astro/jsx-a11y/iframe-has-title\": \"error\",\n \"astro/jsx-a11y/img-redundant-alt\": \"error\",\n \"astro/jsx-a11y/interactive-supports-focus\": \"error\",\n \"astro/jsx-a11y/label-has-associated-control\": \"error\",\n \"astro/jsx-a11y/lang\": \"error\",\n \"astro/jsx-a11y/media-has-caption\": \"error\",\n \"astro/jsx-a11y/mouse-events-have-key-events\": \"error\",\n \"astro/jsx-a11y/no-access-key\": \"error\",\n \"astro/jsx-a11y/no-aria-hidden-on-focusable\": \"error\",\n \"astro/jsx-a11y/no-autofocus\": \"error\",\n \"astro/jsx-a11y/no-distracting-elements\": \"error\",\n \"astro/jsx-a11y/no-interactive-element-to-noninteractive-role\": \"error\",\n \"astro/jsx-a11y/no-noninteractive-element-interactions\": \"error\",\n \"astro/jsx-a11y/no-noninteractive-element-to-interactive-role\": \"error\",\n \"astro/jsx-a11y/no-noninteractive-tabindex\": \"error\",\n \"astro/jsx-a11y/no-redundant-roles\": \"error\",\n \"astro/jsx-a11y/no-static-element-interactions\": \"error\",\n \"astro/jsx-a11y/prefer-tag-over-role\": \"error\",\n \"astro/jsx-a11y/role-has-required-aria-props\": \"error\",\n \"astro/jsx-a11y/role-supports-aria-props\": \"error\",\n \"astro/jsx-a11y/scope\": \"error\",\n \"astro/jsx-a11y/tabindex-no-positive\": \"error\",\n \"astro/missing-client-only-directive-value\": \"error\",\n \"astro/no-conflict-set-directives\": \"error\",\n \"astro/no-deprecated-astro-canonicalurl\": \"error\",\n \"astro/no-deprecated-astro-fetchcontent\": \"error\",\n \"astro/no-deprecated-astro-resolve\": \"error\",\n \"astro/no-deprecated-getentrybyslug\": \"error\",\n \"astro/no-exports-from-components\": \"error\",\n \"astro/no-prerender-export-outside-pages\": \"error\",\n \"astro/no-set-html-directive\": \"off\",\n \"astro/no-set-text-directive\": \"error\",\n \"astro/no-unsafe-inline-scripts\": \"error\",\n \"astro/no-unused-css-selector\": \"error\",\n \"astro/no-unused-define-vars-in-style\": \"error\",\n \"astro/prefer-class-list-directive\": \"error\",\n \"astro/prefer-object-class-list\": \"error\",\n \"astro/prefer-split-class-list\": \"error\",\n \"astro/semi\": \"error\",\n \"astro/sort-attributes\": \"error\",\n \"astro/valid-compile\": \"error\"\n },\n \n }\n);\n"],"mappings":"+CACA,OAAS,gBAAAA,EAAc,iBAAAC,MAAqB,gBAE5C,OAAOC,MAAW,sBAElB,IAAOC,EAAQC,EACbC,EAAcC,CAAO,EACvB,CACI,MAAO,CAAC,cAAc,EAC1B,gBAAAC,EACI,QAAS,CACP,MAASL,CACX,EACA,MAAO,CACL,0BAA2B,QAC/B,uCAAwC,QACxC,oCAAqC,QACrC,iCAAkC,QAClC,oDAAqD,QACrD,4BAA6B,QAC7B,gCAAiC,QACjC,2BAA4B,QAC5B,2CAA4C,QAC5C,oCAAqC,QACrC,8CAA+C,QAC/C,8CAA+C,QAC/C,qCAAsC,QACtC,+BAAgC,QAChC,kCAAmC,QACnC,mCAAoC,QACpC,4CAA6C,QAC7C,8CAA+C,QAC/C,sBAAuB,QACvB,mCAAoC,QACpC,8CAA+C,QAC/C,+BAAgC,QAChC,6CAA8C,QAC9C,8BAA+B,QAC/B,yCAA0C,QAC1C,+DAAgE,QAChE,wDAAyD,QACzD,+DAAgE,QAChE,4CAA6C,QAC7C,oCAAqC,QACrC,gDAAiD,QACjD,sCAAuC,QACvC,8CAA+C,QAC/C,0CAA2C,QAC3C,uBAAwB,QACxB,sCAAuC,QACvC,4CAA6C,QAC7C,mCAAoC,QACpC,yCAA0C,QAC1C,yCAA0C,QAC1C,oCAAqC,QACrC,qCAAsC,QACtC,mCAAoC,QACpC,0CAA2C,QAC3C,8BAA+B,MAC/B,8BAA+B,QAC/B,iCAAkC,QAClC,+BAAgC,QAChC,uCAAwC,QACxC,oCAAqC,QACrC,iCAAkC,QAClC,gCAAiC,QACjC,aAAc,QACd,wBAAyB,QACzB,sBAAuB,OACrB,CAEF,CACF","names":["defineConfig","globalIgnores","astro","config_astro_default","defineConfig","globalIgnores","ignores","languageOptions"]}
1
+ {"version":3,"sources":["../src/config.astro.js"],"sourcesContent":["// @ts-nocheck\nimport { defineConfig, globalIgnores } from \"eslint/config\";\nimport { ignores, languageOptions } from \"./constants.js\";\nimport astro from \"eslint-plugin-astro\";\n\nexport default defineConfig(\n globalIgnores(ignores),\n{\n files: [\"**/*.{astro}\"],\nlanguageOptions,\n plugins: {\n \"astro\": astro,\n },\n rules: {\n \"astro/jsx-a11y/alt-text\": \"error\",\n \"astro/jsx-a11y/anchor-ambiguous-text\": \"error\",\n \"astro/jsx-a11y/anchor-has-content\": \"error\",\n \"astro/jsx-a11y/anchor-is-valid\": \"error\",\n \"astro/jsx-a11y/aria-activedescendant-has-tabindex\": \"error\",\n \"astro/jsx-a11y/aria-props\": \"error\",\n \"astro/jsx-a11y/aria-proptypes\": \"error\",\n \"astro/jsx-a11y/aria-role\": \"error\",\n \"astro/jsx-a11y/aria-unsupported-elements\": \"error\",\n \"astro/jsx-a11y/autocomplete-valid\": \"error\",\n \"astro/jsx-a11y/click-events-have-key-events\": \"error\",\n \"astro/jsx-a11y/control-has-associated-label\": \"error\",\n \"astro/jsx-a11y/heading-has-content\": \"error\",\n \"astro/jsx-a11y/html-has-lang\": \"error\",\n \"astro/jsx-a11y/iframe-has-title\": \"error\",\n \"astro/jsx-a11y/img-redundant-alt\": \"error\",\n \"astro/jsx-a11y/interactive-supports-focus\": \"error\",\n \"astro/jsx-a11y/label-has-associated-control\": \"error\",\n \"astro/jsx-a11y/lang\": \"error\",\n \"astro/jsx-a11y/media-has-caption\": \"error\",\n \"astro/jsx-a11y/mouse-events-have-key-events\": \"error\",\n \"astro/jsx-a11y/no-access-key\": \"error\",\n \"astro/jsx-a11y/no-aria-hidden-on-focusable\": \"error\",\n \"astro/jsx-a11y/no-autofocus\": \"error\",\n \"astro/jsx-a11y/no-distracting-elements\": \"error\",\n \"astro/jsx-a11y/no-interactive-element-to-noninteractive-role\": \"error\",\n \"astro/jsx-a11y/no-noninteractive-element-interactions\": \"error\",\n \"astro/jsx-a11y/no-noninteractive-element-to-interactive-role\": \"error\",\n \"astro/jsx-a11y/no-noninteractive-tabindex\": \"error\",\n \"astro/jsx-a11y/no-redundant-roles\": \"error\",\n \"astro/jsx-a11y/no-static-element-interactions\": \"error\",\n \"astro/jsx-a11y/prefer-tag-over-role\": \"error\",\n \"astro/jsx-a11y/role-has-required-aria-props\": \"error\",\n \"astro/jsx-a11y/role-supports-aria-props\": \"error\",\n \"astro/jsx-a11y/scope\": \"error\",\n \"astro/jsx-a11y/tabindex-no-positive\": \"error\",\n \"astro/missing-client-only-directive-value\": \"error\",\n \"astro/no-conflict-set-directives\": \"error\",\n \"astro/no-deprecated-astro-canonicalurl\": \"error\",\n \"astro/no-deprecated-astro-fetchcontent\": \"error\",\n \"astro/no-deprecated-astro-resolve\": \"error\",\n \"astro/no-deprecated-getentrybyslug\": \"error\",\n \"astro/no-exports-from-components\": \"error\",\n \"astro/no-omitted-end-tags\": \"error\",\n \"astro/no-prerender-export-outside-pages\": \"error\",\n \"astro/no-set-html-directive\": \"off\",\n \"astro/no-set-text-directive\": \"error\",\n \"astro/no-unsafe-inline-scripts\": \"error\",\n \"astro/no-unused-css-selector\": \"error\",\n \"astro/no-unused-define-vars-in-style\": \"error\",\n \"astro/prefer-class-list-directive\": \"error\",\n \"astro/prefer-object-class-list\": \"error\",\n \"astro/prefer-split-class-list\": \"error\",\n \"astro/semi\": \"error\",\n \"astro/sort-attributes\": \"error\",\n \"astro/valid-compile\": \"error\"\n },\n \n }\n);\n"],"mappings":"+CACA,OAAS,gBAAAA,EAAc,iBAAAC,MAAqB,gBAE5C,OAAOC,MAAW,sBAElB,IAAOC,EAAQC,EACbC,EAAcC,CAAO,EACvB,CACI,MAAO,CAAC,cAAc,EAC1B,gBAAAC,EACI,QAAS,CACP,MAASL,CACX,EACA,MAAO,CACL,0BAA2B,QAC/B,uCAAwC,QACxC,oCAAqC,QACrC,iCAAkC,QAClC,oDAAqD,QACrD,4BAA6B,QAC7B,gCAAiC,QACjC,2BAA4B,QAC5B,2CAA4C,QAC5C,oCAAqC,QACrC,8CAA+C,QAC/C,8CAA+C,QAC/C,qCAAsC,QACtC,+BAAgC,QAChC,kCAAmC,QACnC,mCAAoC,QACpC,4CAA6C,QAC7C,8CAA+C,QAC/C,sBAAuB,QACvB,mCAAoC,QACpC,8CAA+C,QAC/C,+BAAgC,QAChC,6CAA8C,QAC9C,8BAA+B,QAC/B,yCAA0C,QAC1C,+DAAgE,QAChE,wDAAyD,QACzD,+DAAgE,QAChE,4CAA6C,QAC7C,oCAAqC,QACrC,gDAAiD,QACjD,sCAAuC,QACvC,8CAA+C,QAC/C,0CAA2C,QAC3C,uBAAwB,QACxB,sCAAuC,QACvC,4CAA6C,QAC7C,mCAAoC,QACpC,yCAA0C,QAC1C,yCAA0C,QAC1C,oCAAqC,QACrC,qCAAsC,QACtC,mCAAoC,QACpC,4BAA6B,QAC7B,0CAA2C,QAC3C,8BAA+B,MAC/B,8BAA+B,QAC/B,iCAAkC,QAClC,+BAAgC,QAChC,uCAAwC,QACxC,oCAAqC,QACrC,iCAAkC,QAClC,gCAAiC,QACjC,aAAc,QACd,wBAAyB,QACzB,sBAAuB,OACrB,CAEF,CACF","names":["defineConfig","globalIgnores","astro","config_astro_default","defineConfig","globalIgnores","ignores","languageOptions"]}
package/package.json CHANGED
@@ -8,21 +8,21 @@
8
8
  "@angular-eslint/eslint-plugin": "^22.0.0",
9
9
  "@angular-eslint/eslint-plugin-template": "^22.0.0",
10
10
  "@angular-eslint/template-parser": "^22.0.0",
11
- "@eslint-react/eslint-plugin": "^5.9.1",
11
+ "@eslint-react/eslint-plugin": "^5.9.2",
12
12
  "@eslint/compat": "^2.1.0",
13
13
  "@eslint/css": "1.3.0",
14
14
  "@eslint/js": "^10.0.1",
15
15
  "@eslint/json": "^2.0.0",
16
16
  "@eslint/markdown": "^8.0.2",
17
17
  "@html-eslint/eslint-plugin": "^0.62.0",
18
- "@tanstack/eslint-plugin-query": "^5.101.0",
18
+ "@tanstack/eslint-plugin-query": "^5.101.1",
19
19
  "@tanstack/eslint-plugin-router": "^1.162.0",
20
- "@typescript-eslint/parser": "^8.61.1",
20
+ "@typescript-eslint/parser": "^8.62.0",
21
21
  "@vitest/eslint-plugin": "^1.6.20",
22
22
  "angular-eslint": "22.0.0",
23
23
  "caniuse-lite": "^1.0.30001799",
24
24
  "eslint": "^10.5.0",
25
- "eslint-plugin-astro": "^1.7.0",
25
+ "eslint-plugin-astro": "^2.1.0",
26
26
  "eslint-plugin-compat": "^7.0.2",
27
27
  "eslint-plugin-jsx-a11y": "^6.10.2",
28
28
  "eslint-plugin-lodash": "^8.0.0",
@@ -33,9 +33,9 @@
33
33
  "eslint-plugin-solid": "^0.14.5",
34
34
  "eslint-plugin-sonarjs": "4.1.0",
35
35
  "eslint-plugin-storybook": "^10.4.6",
36
- "eslint-plugin-tailwindcss": "^4.0.2",
36
+ "eslint-plugin-tailwindcss": "^4.0.4",
37
37
  "eslint-plugin-unicorn": "^68.0.0",
38
- "typescript-eslint": "^8.61.1"
38
+ "typescript-eslint": "^8.62.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ethang/markdown-generator": "^2.0.2",
@@ -52,7 +52,7 @@
52
52
  "tsc-prog": "^2.3.0",
53
53
  "tsup": "^8.5.1",
54
54
  "typescript": "^6.0.3",
55
- "vite": "^8.0.16",
55
+ "vite": "^8.1.0",
56
56
  "vitest": "^4.1.9",
57
57
  "zod": "^4.4.3"
58
58
  },
@@ -72,5 +72,5 @@
72
72
  "test:watch": "vitest --coverage"
73
73
  },
74
74
  "type": "module",
75
- "version": "25.22.1"
75
+ "version": "25.23.0"
76
76
  }