-
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy patheslint.config.js
More file actions
34 lines (32 loc) · 989 Bytes
/
Copy patheslint.config.js
File metadata and controls
34 lines (32 loc) · 989 Bytes
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
import {fileURLToPath} from 'node:url';
import eslintConfigXo from 'eslint-config-xo';
import eslintConfigPrettier from 'eslint-config-prettier/flat';
import sveltePlugin from 'eslint-plugin-svelte';
import {defineConfig, globalIgnores, includeIgnoreFile} from 'eslint/config';
const gitignorePath = fileURLToPath(new URL('.gitignore', import.meta.url));
export default defineConfig([
includeIgnoreFile(gitignorePath),
globalIgnores(['package-lock.json']),
...eslintConfigXo({browser: true}),
{
files: ['**/*.svelte'],
extends: [sveltePlugin.configs['flat/recommended']],
rules: {
'unicorn/prefer-top-level-await': 'off',
'import-x/no-mutable-exports': 'off',
},
},
{
languageOptions: {
globals: {chrome: 'readonly'},
},
rules: {
'no-console': 'off',
'jsdoc/require-param': 'off',
'@html-eslint/attrs-newline': 'off',
'@html-eslint/no-extra-spacing-tags': 'off',
'@html-eslint/require-closing-tags': 'off',
},
},
eslintConfigPrettier,
]);