-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
27 lines (25 loc) · 964 Bytes
/
eslint.config.mjs
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
// @ts-check
import eslintPluginAstro from 'eslint-plugin-astro';
/** @type {import('eslint').Linter.Config[]} */
export default [
...eslintPluginAstro.configs.base,
{
rules: {
'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-unused-define-vars-in-style': 'error',
'astro/valid-compile': 'error',
'astro/no-set-html-directive': 'error',
'astro/no-set-text-directive': 'error',
'astro/no-unused-css-selector': 'error',
'astro/prefer-class-list-directive': 'error',
'astro/prefer-object-class-list': 'error',
'astro/prefer-split-class-list': 'error',
},
},
];