-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
65 lines (60 loc) · 1.42 KB
/
.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
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
root: true,
parser: "babel-eslint",
parserOptions: {
'sourceType': 'module',
'ecmaVersion': 2019,
},
env: {
'es6': true,
'browser': true,
},
plugins: [
'svelte3',
'mocha',
'json',
'import',
],
overrides: [
{
files: ['*.svelte'],
processor: 'svelte3/svelte3'
}
],
settings: {
'svelte3/ignore-styles': (attributes) => attributes.lang == 'scss',
},
ignorePatterns: [
'!.eslintrc.js',
'node_modules/**',
'dist/**',
'builds/**',
'docs/**',
'tools/**',
'src/_locales/**',
'src/assets/**',
],
rules: {
'arrow-parens': 'error',
'no-mixed-operators': 'error',
'semi': ['error'],
'indent': ["error", 2],
'import/default': 'error',
'import/export': 'error',
'import/named': 'error',
'import/namespace': 'error',
'import/newline-after-import': 'error',
'import/no-absolute-path': 'error',
'import/no-amd': 'error',
'import/no-anonymous-default-export': ['error', { 'allowObject': true }],
'import/no-dynamic-require': 'error',
'import/no-named-as-default': 'error',
'import/no-named-as-default-member': 'error',
'import/no-named-default': 'error',
'import/no-self-import': 'error',
'import/no-unused-modules': 'error',
'import/no-webpack-loader-syntax': 'error',
'mocha/no-setup-in-describe': 'off',
'no-mixed-operators': 'off'
},
};