2026-04-03
- eslint OK - import OK - jsdoc OK - node OK - oxc OK - promise OK
This commit is contained in:
parent
93dd909919
commit
7e91de4cb2
22 changed files with 2703 additions and 1600 deletions
104
rules/astro.ts
104
rules/astro.ts
|
|
@ -7,70 +7,70 @@ const astroConfig: OxlintOverride = {
|
|||
files: ["**/*.astro"],
|
||||
jsPlugins: ["eslint-plugin-astro"],
|
||||
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-set-html-directive": "error",
|
||||
"astro/no-set-text-directive": "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/jsx-a11y/alt-text": "deny",
|
||||
"astro/jsx-a11y/anchor-ambiguous-text": "deny",
|
||||
"astro/jsx-a11y/anchor-has-content": "deny",
|
||||
"astro/jsx-a11y/anchor-is-valid": "deny",
|
||||
"astro/jsx-a11y/aria-activedescendant-has-tabindex": "deny",
|
||||
"astro/jsx-a11y/aria-props": "deny",
|
||||
"astro/jsx-a11y/aria-proptypes": "deny",
|
||||
"astro/jsx-a11y/aria-role": "deny",
|
||||
"astro/jsx-a11y/aria-unsupported-elements": "deny",
|
||||
"astro/jsx-a11y/autocomplete-valid": "deny",
|
||||
"astro/jsx-a11y/click-events-have-key-events": "deny",
|
||||
"astro/jsx-a11y/control-has-associated-label": "deny",
|
||||
"astro/jsx-a11y/heading-has-content": "deny",
|
||||
"astro/jsx-a11y/html-has-lang": "deny",
|
||||
"astro/jsx-a11y/iframe-has-title": "deny",
|
||||
"astro/jsx-a11y/img-redundant-alt": "deny",
|
||||
"astro/jsx-a11y/interactive-supports-focus": "deny",
|
||||
"astro/jsx-a11y/label-has-associated-control": "deny",
|
||||
"astro/jsx-a11y/lang": "deny",
|
||||
"astro/jsx-a11y/media-has-caption": "deny",
|
||||
"astro/jsx-a11y/mouse-events-have-key-events": "deny",
|
||||
"astro/jsx-a11y/no-access-key": "deny",
|
||||
"astro/jsx-a11y/no-aria-hidden-on-focusable": "deny",
|
||||
"astro/jsx-a11y/no-autofocus": "deny",
|
||||
"astro/jsx-a11y/no-distracting-elements": "deny",
|
||||
"astro/jsx-a11y/no-interactive-element-to-noninteractive-role": "deny",
|
||||
"astro/jsx-a11y/no-noninteractive-element-interactions": "deny",
|
||||
"astro/jsx-a11y/no-noninteractive-element-to-interactive-role": "deny",
|
||||
"astro/jsx-a11y/no-noninteractive-tabindex": "deny",
|
||||
"astro/jsx-a11y/no-redundant-roles": "deny",
|
||||
"astro/jsx-a11y/no-static-element-interactions": "deny",
|
||||
"astro/jsx-a11y/prefer-tag-over-role": "deny",
|
||||
"astro/jsx-a11y/role-has-required-aria-props": "deny",
|
||||
"astro/jsx-a11y/role-supports-aria-props": "deny",
|
||||
"astro/jsx-a11y/scope": "deny",
|
||||
"astro/jsx-a11y/tabindex-no-positive": "deny",
|
||||
"astro/missing-client-only-directive-value": "deny",
|
||||
"astro/no-conflict-set-directives": "deny",
|
||||
"astro/no-deprecated-astro-canonicalurl": "deny",
|
||||
"astro/no-deprecated-astro-fetchcontent": "deny",
|
||||
"astro/no-deprecated-astro-resolve": "deny",
|
||||
"astro/no-deprecated-getentrybyslug": "deny",
|
||||
"astro/no-exports-from-components": "deny",
|
||||
"astro/no-set-html-directive": "deny",
|
||||
"astro/no-set-text-directive": "deny",
|
||||
"astro/no-unused-css-selector": "deny",
|
||||
"astro/no-unused-define-vars-in-style": "deny",
|
||||
"astro/prefer-class-list-directive": "deny",
|
||||
"astro/prefer-object-class-list": "deny",
|
||||
"astro/prefer-split-class-list": [
|
||||
"error",
|
||||
"deny",
|
||||
{
|
||||
splitLiteral: false,
|
||||
},
|
||||
],
|
||||
"astro/sort-attributes": [
|
||||
"error",
|
||||
"deny",
|
||||
{
|
||||
ignoreCase: false,
|
||||
order: "asc",
|
||||
type: "alphabetical",
|
||||
},
|
||||
],
|
||||
"astro/valid-compile": "error",
|
||||
"astro/valid-compile": "deny",
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue