-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
48 lines (47 loc) · 904 Bytes
/
eslint.config.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
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import prettierConfig from 'eslint-config-prettier';
export default [
js.configs.recommended,
...svelte.configs['flat/recommended'],
{
files: ['**/*.svelte'],
rules: {
'svelte/no-at-html-tags': 'off',
},
},
{
files: ['**/*.js', '**/*.cjs', '**/*.svelte'],
ignores: [
'.DS_Store',
'node_modules/**',
'build/**',
'.svelte-kit/**',
'.env',
'.env.*',
'pnpm-lock.yaml',
'package-lock.json',
'yarn.lock'
],
languageOptions: {
sourceType: 'module',
ecmaVersion: 2020,
globals: {
// Browser globals
window: true,
document: true,
console: true,
setTimeout: true,
prompt: true,
localStorage: true,
sessionStorage: true,
// Node.js globals
process: true,
require: true,
__dirname: true,
module: true
}
}
},
prettierConfig
];