forked from appliedblockchain/eslint-config
-
Notifications
You must be signed in to change notification settings - Fork 1
/
svelte.js
47 lines (45 loc) · 900 Bytes
/
svelte.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
'use strict'
const { readonly, off } = require('./constants')
module.exports = {
extends: './node.js',
globals: {
describe: readonly,
context: readonly,
it: readonly,
beforeEach: readonly,
afterEach: readonly,
before: readonly,
after: readonly
},
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module'
},
env: {
es6: true,
browser: true
},
plugins: [
'svelte'
],
overrides: [
{
files: [
'**/*.svelte',
'**/*.html'
],
rules: {
'import/first': off,
'import/no-duplicates': off,
'import/no-mutable-exports': off,
'import/no-unresolved': off,
'no-multiple-empty-lines': off,
'a11y-no-onchange': off
},
settings: {
'svelte3/ignore-styles': attrs => attrs.lang === 'scss'
},
processor: 'svelte3/svelte3'
}
]
}