-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
53 lines (53 loc) · 995 Bytes
/
.eslintrc.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
49
50
51
52
53
module.exports = {
root: true,
parserOptions: {
sourceType: 'module',
ecmaVersion: 2021,
ecmaFeatures: {
globalReturn: false,
impliedStrict: false,
jsx: false,
},
},
env: {
es6: true,
browser: true,
node: true,
},
extends: [
'plugin:svelte/base',
'plugin:svelte/recommended',
'plugin:prettier/recommended',
'plugin:svelte/prettier',
],
plugins: ['prettier'],
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
},
],
ignorePatterns: ['dist/', 'public/'],
rules: {
semi: ['error', 'never'], // uncomment if you want to remove ;
'svelte/valid-compile': [
'off',
{
ignoreWarnings: false,
},
],
'svelte/html-quotes': [
'error',
{
prefer: 'double', // or "single"
dynamic: {
quoted: true,
avoidInvalidUnquotedInHTML: false,
},
},
],
},
settings: {
// ...
},
}