-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
54 lines (52 loc) · 1.02 KB
/
eslint.config.mjs
File metadata and controls
54 lines (52 loc) · 1.02 KB
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
import globals from 'globals';
import css from '@eslint/css';
import html from '@html-eslint/eslint-plugin';
import compat from 'eslint-plugin-compat';
const available = 2023;
/** @type {import('eslint').Linter.Config[]} */
export default [
{
languageOptions: {
globals: globals.browser,
// note that `tolerant: true` is for "custom syntax", it's just that
// nesting validation isn't there yet: https://git.new/Xw6rUGH
tolerant: true,
},
},
{
files: ['**/*.css'],
plugins: {
css,
},
language: 'css/css',
rules: {
'css/use-baseline': [
'warn',
{
available,
},
],
},
},
{
...html.configs['flat/recommended'],
files: ['**/*.html'],
rules: {
'@html-eslint/use-baseline': [
'warn',
{
available,
},
],
},
},
{
...compat.configs['flat/recommended'],
settings: {
lintAllEsApis: true,
},
rules: {
'compat/compat': ['warn'],
},
},
];