-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
42 lines (41 loc) · 1.33 KB
/
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
import eslintPluginSvelte from 'eslint-plugin-svelte'
export default [
// add more generic rule sets here, such as:
// js.configs.recommended,
...eslintPluginSvelte.configs['flat/recommended'],
{
files: ['**/*.svelte'],
parser: 'svelte-eslint-parser',
extends: ['eslint:recommended', 'plugin:svelte/recommended'],
rules: {
'svelte/no-at-html-tags': 'off',
'svelte/no-target-blank': 'off',
'svelte/valid-compile': [
'error',
{
ignoreWarnings: true
}
],
'no-undef': 'off',
'no-fallthrough': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-redeclare': 'off',
'no-with': 'off',
'no-prototype-builtins': 'off',
'no-misleading-character-class': 'off',
'no-async-promise-executor': 'off',
'no-import-assign': 'off',
'no-sparse-arrays': 'off',
'no-useless-escape': 'off',
'no-empty': ['error', { allowEmptyCatch: true }],
'no-unused-vars': [
'warn',
{
vars: 'none',
args: 'after-used',
ignoreRestSiblings: false
}
]
}
}
]