@ethang/eslint-config 24.3.0 → 24.4.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 +2 -2
- package/config.html.js +1 -1
- package/config.html.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
* 53 rules for **Astro**
|
|
31
31
|
* `import astroConfig from "@ethang/eslint-config/config.astro.js";`
|
|
32
32
|
* 53 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
|
|
33
|
-
*
|
|
33
|
+
* 54 rules for **HTML**
|
|
34
34
|
* import html from "@ethang/eslint-config/config.html.js";
|
|
35
|
-
*
|
|
35
|
+
* 54 rules from [@html-eslint/eslint-plugin](https://github.com/html-eslint/html-eslint)
|
|
36
36
|
* 92 rules for **React**
|
|
37
37
|
* `import reactConfig from "@ethang/eslint-config/config.react.js";`
|
|
38
38
|
* 63 rules from [@eslint-react/eslint-plugin](https://eslint-react.xyz/)
|
package/config.html.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r,b as e}from"./chunk-WK3YS7OG.js";import{defineConfig as t}from"eslint/config";import o from"@html-eslint/eslint-plugin";var m=t({files:["**/*.html"],ignores:r,languageOptions:e,language:"html/html",plugins:{html:o},rules:{"html/attrs-newline":"off","html/class-spacing":"error","html/element-newline":"off","html/id-naming-convention":"error","html/indent":"off","html/lowercase":"error","html/max-element-depth":"error","html/no-abstract-roles":"error","html/no-accesskey-attrs":"error","html/no-aria-hidden-body":"error","html/no-aria-hidden-on-focusable":"error","html/no-duplicate-attrs":"error","html/no-duplicate-class":"error","html/no-duplicate-id":"error","html/no-duplicate-in-head":"error","html/no-empty-headings":"error","html/no-extra-spacing-attrs":"off","html/no-extra-spacing-text":"error","html/no-heading-inside-button":"error","html/no-ineffective-attrs":"error","html/no-inline-styles":"error","html/no-invalid-entity":"error","html/no-invalid-role":"error","html/no-multiple-empty-lines":"error","html/no-multiple-h1":"error","html/no-nested-interactive":"error","html/no-non-scalable-viewport":"error","html/no-obsolete-attrs":"error","html/no-obsolete-tags":"error","html/no-positive-tabindex":"error","html/no-restricted-attr-values":"error","html/no-restricted-attrs":"error","html/no-restricted-tags":"error","html/no-script-style-type":"error","html/no-skip-heading-levels":"error","html/no-target-blank":"error","html/no-trailing-spaces":"error","html/no-whitespace-only-children":"error","html/prefer-https":"error","html/quotes":"error","html/require-attrs":"error","html/require-button-type":"error","html/require-closing-tags":"off","html/require-doctype":"error","html/require-explicit-size":"error","html/require-form-method":"error","html/require-frame-title":"error","html/require-img-alt":"error","html/require-input-label":"error","html/require-lang":"error","html/require-li-container":"error","html/require-meta-charset":"error","html/require-meta-description":"error","html/require-meta-viewport":"error","html/require-open-graph-protocol":"error","html/require-title":"error","html/sort-attrs":"error","html/use-baseline":"error","prettier/prettier":"off"}});export{m as default};
|
|
1
|
+
import{a as r,b as e}from"./chunk-WK3YS7OG.js";import{defineConfig as t}from"eslint/config";import o from"@html-eslint/eslint-plugin";var m=t({files:["**/*.html"],ignores:r,languageOptions:e,language:"html/html",plugins:{html:o},rules:{"html/attrs-newline":"off","html/class-spacing":"error","html/css-no-empty-blocks":"error","html/element-newline":"off","html/id-naming-convention":"error","html/indent":"off","html/lowercase":"error","html/max-element-depth":"error","html/no-abstract-roles":"error","html/no-accesskey-attrs":"error","html/no-aria-hidden-body":"error","html/no-aria-hidden-on-focusable":"error","html/no-duplicate-attrs":"error","html/no-duplicate-class":"error","html/no-duplicate-id":"error","html/no-duplicate-in-head":"error","html/no-empty-headings":"error","html/no-extra-spacing-attrs":"off","html/no-extra-spacing-text":"error","html/no-heading-inside-button":"error","html/no-ineffective-attrs":"error","html/no-inline-styles":"error","html/no-invalid-entity":"error","html/no-invalid-role":"error","html/no-multiple-empty-lines":"error","html/no-multiple-h1":"error","html/no-nested-interactive":"error","html/no-non-scalable-viewport":"error","html/no-obsolete-attrs":"error","html/no-obsolete-tags":"error","html/no-positive-tabindex":"error","html/no-restricted-attr-values":"error","html/no-restricted-attrs":"error","html/no-restricted-tags":"error","html/no-script-style-type":"error","html/no-skip-heading-levels":"error","html/no-target-blank":"error","html/no-trailing-spaces":"error","html/no-whitespace-only-children":"error","html/prefer-https":"error","html/quotes":"error","html/require-attrs":"error","html/require-button-type":"error","html/require-closing-tags":"off","html/require-doctype":"error","html/require-explicit-size":"error","html/require-form-method":"error","html/require-frame-title":"error","html/require-img-alt":"error","html/require-input-label":"error","html/require-lang":"error","html/require-li-container":"error","html/require-meta-charset":"error","html/require-meta-description":"error","html/require-meta-viewport":"error","html/require-open-graph-protocol":"error","html/require-title":"error","html/sort-attrs":"error","html/use-baseline":"error","prettier/prettier":"off"}});export{m as default};
|
|
2
2
|
//# sourceMappingURL=config.html.js.map
|
package/config.html.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/config.html.js"],"sourcesContent":["// @ts-nocheck\nimport { defineConfig } from \"eslint/config\";\nimport { ignores, languageOptions } from \"./constants.js\";\nimport html from \"@html-eslint/eslint-plugin\";\n\nexport default defineConfig(\n {\n files: [\"**/*.html\"],\nignores,\nlanguageOptions,language: \"html/html\",\n plugins: {\n \"html\": html,\n },\n rules: {\n \"html/attrs-newline\":\"off\",\"html/class-spacing\":\"error\",\"html/element-newline\":\"off\",\"html/id-naming-convention\":\"error\",\"html/indent\":\"off\",\"html/lowercase\":\"error\",\"html/max-element-depth\":\"error\",\"html/no-abstract-roles\":\"error\",\"html/no-accesskey-attrs\":\"error\",\"html/no-aria-hidden-body\":\"error\",\"html/no-aria-hidden-on-focusable\":\"error\",\"html/no-duplicate-attrs\":\"error\",\"html/no-duplicate-class\":\"error\",\"html/no-duplicate-id\":\"error\",\"html/no-duplicate-in-head\":\"error\",\"html/no-empty-headings\":\"error\",\"html/no-extra-spacing-attrs\":\"off\",\"html/no-extra-spacing-text\":\"error\",\"html/no-heading-inside-button\":\"error\",\"html/no-ineffective-attrs\":\"error\",\"html/no-inline-styles\":\"error\",\"html/no-invalid-entity\":\"error\",\"html/no-invalid-role\":\"error\",\"html/no-multiple-empty-lines\":\"error\",\"html/no-multiple-h1\":\"error\",\"html/no-nested-interactive\":\"error\",\"html/no-non-scalable-viewport\":\"error\",\"html/no-obsolete-attrs\":\"error\",\"html/no-obsolete-tags\":\"error\",\"html/no-positive-tabindex\":\"error\",\"html/no-restricted-attr-values\":\"error\",\"html/no-restricted-attrs\":\"error\",\"html/no-restricted-tags\":\"error\",\"html/no-script-style-type\":\"error\",\"html/no-skip-heading-levels\":\"error\",\"html/no-target-blank\":\"error\",\"html/no-trailing-spaces\":\"error\",\"html/no-whitespace-only-children\":\"error\",\"html/prefer-https\":\"error\",\"html/quotes\":\"error\",\"html/require-attrs\":\"error\",\"html/require-button-type\":\"error\",\"html/require-closing-tags\":\"off\",\"html/require-doctype\":\"error\",\"html/require-explicit-size\":\"error\",\"html/require-form-method\":\"error\",\"html/require-frame-title\":\"error\",\"html/require-img-alt\":\"error\",\"html/require-input-label\":\"error\",\"html/require-lang\":\"error\",\"html/require-li-container\":\"error\",\"html/require-meta-charset\":\"error\",\"html/require-meta-description\":\"error\",\"html/require-meta-viewport\":\"error\",\"html/require-open-graph-protocol\":\"error\",\"html/require-title\":\"error\",\"html/sort-attrs\":\"error\",\"html/use-baseline\":\"error\"\n ,\"prettier/prettier\":\"off\"\n },\n \n },\n \n \n );\n"],"mappings":"+CACA,OAAS,gBAAAA,MAAoB,gBAE7B,OAAOC,MAAU,6BAEjB,IAAOC,EAAQC,EACT,CACF,MAAO,CAAC,WAAW,EACvB,QAAAC,EACA,gBAAAC,EAAgB,SAAU,YACtB,QAAS,CACP,KAAQJ,CACV,EACA,MAAO,CACL,qBAAqB,MAAM,qBAAqB,QAAQ,uBAAuB,MAAM,4BAA4B,QAAQ,cAAc,MAAM,iBAAiB,QAAQ,yBAAyB,QAAQ,yBAAyB,QAAQ,0BAA0B,QAAQ,2BAA2B,QAAQ,mCAAmC,QAAQ,0BAA0B,QAAQ,0BAA0B,QAAQ,uBAAuB,QAAQ,4BAA4B,QAAQ,yBAAyB,QAAQ,8BAA8B,MAAM,6BAA6B,QAAQ,gCAAgC,QAAQ,4BAA4B,QAAQ,wBAAwB,QAAQ,yBAAyB,QAAQ,uBAAuB,QAAQ,+BAA+B,QAAQ,sBAAsB,QAAQ,6BAA6B,QAAQ,gCAAgC,QAAQ,yBAAyB,QAAQ,wBAAwB,QAAQ,4BAA4B,QAAQ,iCAAiC,QAAQ,2BAA2B,QAAQ,0BAA0B,QAAQ,4BAA4B,QAAQ,8BAA8B,QAAQ,uBAAuB,QAAQ,0BAA0B,QAAQ,mCAAmC,QAAQ,oBAAoB,QAAQ,cAAc,QAAQ,qBAAqB,QAAQ,2BAA2B,QAAQ,4BAA4B,MAAM,uBAAuB,QAAQ,6BAA6B,QAAQ,2BAA2B,QAAQ,2BAA2B,QAAQ,uBAAuB,QAAQ,2BAA2B,QAAQ,oBAAoB,QAAQ,4BAA4B,QAAQ,4BAA4B,QAAQ,gCAAgC,QAAQ,6BAA6B,QAAQ,mCAAmC,QAAQ,qBAAqB,QAAQ,kBAAkB,QAAQ,oBAAoB,
|
|
1
|
+
{"version":3,"sources":["../src/config.html.js"],"sourcesContent":["// @ts-nocheck\nimport { defineConfig } from \"eslint/config\";\nimport { ignores, languageOptions } from \"./constants.js\";\nimport html from \"@html-eslint/eslint-plugin\";\n\nexport default defineConfig(\n {\n files: [\"**/*.html\"],\nignores,\nlanguageOptions,language: \"html/html\",\n plugins: {\n \"html\": html,\n },\n rules: {\n \"html/attrs-newline\":\"off\",\"html/class-spacing\":\"error\",\"html/css-no-empty-blocks\":\"error\",\"html/element-newline\":\"off\",\"html/id-naming-convention\":\"error\",\"html/indent\":\"off\",\"html/lowercase\":\"error\",\"html/max-element-depth\":\"error\",\"html/no-abstract-roles\":\"error\",\"html/no-accesskey-attrs\":\"error\",\"html/no-aria-hidden-body\":\"error\",\"html/no-aria-hidden-on-focusable\":\"error\",\"html/no-duplicate-attrs\":\"error\",\"html/no-duplicate-class\":\"error\",\"html/no-duplicate-id\":\"error\",\"html/no-duplicate-in-head\":\"error\",\"html/no-empty-headings\":\"error\",\"html/no-extra-spacing-attrs\":\"off\",\"html/no-extra-spacing-text\":\"error\",\"html/no-heading-inside-button\":\"error\",\"html/no-ineffective-attrs\":\"error\",\"html/no-inline-styles\":\"error\",\"html/no-invalid-entity\":\"error\",\"html/no-invalid-role\":\"error\",\"html/no-multiple-empty-lines\":\"error\",\"html/no-multiple-h1\":\"error\",\"html/no-nested-interactive\":\"error\",\"html/no-non-scalable-viewport\":\"error\",\"html/no-obsolete-attrs\":\"error\",\"html/no-obsolete-tags\":\"error\",\"html/no-positive-tabindex\":\"error\",\"html/no-restricted-attr-values\":\"error\",\"html/no-restricted-attrs\":\"error\",\"html/no-restricted-tags\":\"error\",\"html/no-script-style-type\":\"error\",\"html/no-skip-heading-levels\":\"error\",\"html/no-target-blank\":\"error\",\"html/no-trailing-spaces\":\"error\",\"html/no-whitespace-only-children\":\"error\",\"html/prefer-https\":\"error\",\"html/quotes\":\"error\",\"html/require-attrs\":\"error\",\"html/require-button-type\":\"error\",\"html/require-closing-tags\":\"off\",\"html/require-doctype\":\"error\",\"html/require-explicit-size\":\"error\",\"html/require-form-method\":\"error\",\"html/require-frame-title\":\"error\",\"html/require-img-alt\":\"error\",\"html/require-input-label\":\"error\",\"html/require-lang\":\"error\",\"html/require-li-container\":\"error\",\"html/require-meta-charset\":\"error\",\"html/require-meta-description\":\"error\",\"html/require-meta-viewport\":\"error\",\"html/require-open-graph-protocol\":\"error\",\"html/require-title\":\"error\",\"html/sort-attrs\":\"error\",\"html/use-baseline\":\"error\"\n ,\"prettier/prettier\":\"off\"\n },\n \n },\n \n \n );\n"],"mappings":"+CACA,OAAS,gBAAAA,MAAoB,gBAE7B,OAAOC,MAAU,6BAEjB,IAAOC,EAAQC,EACT,CACF,MAAO,CAAC,WAAW,EACvB,QAAAC,EACA,gBAAAC,EAAgB,SAAU,YACtB,QAAS,CACP,KAAQJ,CACV,EACA,MAAO,CACL,qBAAqB,MAAM,qBAAqB,QAAQ,2BAA2B,QAAQ,uBAAuB,MAAM,4BAA4B,QAAQ,cAAc,MAAM,iBAAiB,QAAQ,yBAAyB,QAAQ,yBAAyB,QAAQ,0BAA0B,QAAQ,2BAA2B,QAAQ,mCAAmC,QAAQ,0BAA0B,QAAQ,0BAA0B,QAAQ,uBAAuB,QAAQ,4BAA4B,QAAQ,yBAAyB,QAAQ,8BAA8B,MAAM,6BAA6B,QAAQ,gCAAgC,QAAQ,4BAA4B,QAAQ,wBAAwB,QAAQ,yBAAyB,QAAQ,uBAAuB,QAAQ,+BAA+B,QAAQ,sBAAsB,QAAQ,6BAA6B,QAAQ,gCAAgC,QAAQ,yBAAyB,QAAQ,wBAAwB,QAAQ,4BAA4B,QAAQ,iCAAiC,QAAQ,2BAA2B,QAAQ,0BAA0B,QAAQ,4BAA4B,QAAQ,8BAA8B,QAAQ,uBAAuB,QAAQ,0BAA0B,QAAQ,mCAAmC,QAAQ,oBAAoB,QAAQ,cAAc,QAAQ,qBAAqB,QAAQ,2BAA2B,QAAQ,4BAA4B,MAAM,uBAAuB,QAAQ,6BAA6B,QAAQ,2BAA2B,QAAQ,2BAA2B,QAAQ,uBAAuB,QAAQ,2BAA2B,QAAQ,oBAAoB,QAAQ,4BAA4B,QAAQ,4BAA4B,QAAQ,gCAAgC,QAAQ,6BAA6B,QAAQ,mCAAmC,QAAQ,qBAAqB,QAAQ,kBAAkB,QAAQ,oBAAoB,QACz7D,oBAAoB,KACvB,CAEF,CAGE","names":["defineConfig","html","config_html_default","defineConfig","ignores","languageOptions"]}
|
package/package.json
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"@angular-eslint/eslint-plugin-template": "^21.1.0",
|
|
10
10
|
"@angular-eslint/template-parser": "^21.1.0",
|
|
11
11
|
"@cspell/eslint-plugin": "^9.6.0",
|
|
12
|
-
"@eslint-react/eslint-plugin": "^2.6.
|
|
12
|
+
"@eslint-react/eslint-plugin": "^2.6.4",
|
|
13
13
|
"@eslint/css": "0.14.1",
|
|
14
14
|
"@eslint/js": "^9.39.2",
|
|
15
15
|
"@eslint/json": "^0.14.0",
|
|
16
16
|
"@eslint/markdown": "^7.5.1",
|
|
17
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
17
|
+
"@html-eslint/eslint-plugin": "^0.53.0",
|
|
18
18
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
19
19
|
"@tanstack/eslint-plugin-router": "^1.141.0",
|
|
20
20
|
"@typescript-eslint/parser": "^8.53.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"eslint-plugin-storybook": "^10.1.11",
|
|
34
34
|
"eslint-plugin-tailwindcss": "^4.0.0-beta.0",
|
|
35
35
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
36
|
-
"prettier": "^3.
|
|
36
|
+
"prettier": "^3.8.0",
|
|
37
37
|
"typescript-eslint": "^8.53.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
43
43
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
44
44
|
"@types/lodash": "^4.17.23",
|
|
45
|
-
"@types/node": "^25.0.
|
|
45
|
+
"@types/node": "^25.0.9",
|
|
46
46
|
"baseline-browser-mapping": "^2.9.14",
|
|
47
47
|
"browserslist-config-baseline": "^0.5.0",
|
|
48
48
|
"lodash": "^4.17.21",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"lint": "eslint . --fix --concurrency=auto && prettier src --write"
|
|
65
65
|
},
|
|
66
66
|
"type": "module",
|
|
67
|
-
"version": "24.
|
|
67
|
+
"version": "24.4.0"
|
|
68
68
|
}
|