-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.astro.js
67 lines (66 loc) · 2.94 KB
/
config.astro.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import { ignores, languageOptions } from "./constants.js";
import astro from "eslint-plugin-astro";
import tseslint from "typescript-eslint";
export default tseslint.config({
files: ["**/*.{astro}"],
ignores,
languageOptions,
plugins: {
astro: 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": 'off"',
"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/prefer-split-class-list": "error",
"astro/semi": "error",
"astro/sort-attributes": "error",
"astro/valid-compile": "error",
},
});