-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
38 lines (37 loc) · 1.03 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: [
'standard',
// prettier needs to be last as it UNSETS any styling lint errors that prettier doesn't play well with
'prettier',
],
plugins: ['svelte3'],
overrides: [
{
files: ['*.svelte'],
processor: 'svelte3/svelte3',
rules: {
// it is valid in Svelte to initialize optional properties with undefined
// eg export let thing = undefined
// which tells Svelte that this prop is not required
'no-undef-init': 0,
// "standard" config includes eslint-plugin-import
// which has some rules that not compatible with svelte
// see: https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/OTHER_PLUGINS.md
'import/first': 0,
'import/no-duplicates': 0,
'import/no-mutable-exports': 0,
'import/prefer-default-export': 0,
},
},
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
},
env: {
browser: true,
es2017: true,
node: true,
},
}