-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.js
42 lines (42 loc) · 833 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
module.exports = {
root: true,
extends: ['chotot-base'],
plugins: ['import', 'svelte3'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'import/prefer-default-export': 'off',
'no-console': 'off',
'no-shadow': 'off',
'no-tabs': 'off',
'prefer-destructuring': 'off',
// svelte specific:
'import/first': 'off', // import orders cannot be determined correctly in .svelte components
'import/no-mutable-exports': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
globals: {
browser: false,
},
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
overrides: [
{
files: ['*.svelte'],
processor: 'svelte3/svelte3',
},
],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.svelte'],
},
},
},
};