- eslint OK - import OK - jsdoc OK - node OK - oxc OK - promise OK - typescript OK - unicorn en cours
77 lines
3 KiB
TypeScript
77 lines
3 KiB
TypeScript
import type { OxlintOverride } from "oxlint";
|
|
|
|
const astroConfig: OxlintOverride = {
|
|
env: {
|
|
astro: true,
|
|
},
|
|
files: ["**/*.astro"],
|
|
jsPlugins: ["eslint-plugin-astro"],
|
|
rules: {
|
|
"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": [
|
|
"deny",
|
|
{
|
|
splitLiteral: false,
|
|
},
|
|
],
|
|
"astro/sort-attributes": [
|
|
"deny",
|
|
{
|
|
ignoreCase: false,
|
|
order: "asc",
|
|
type: "alphabetical",
|
|
},
|
|
],
|
|
"astro/valid-compile": "deny",
|
|
},
|
|
};
|
|
|
|
export default astroConfig;
|