-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
40 lines (39 loc) · 965 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
module.exports = {
root: true,
env: {
browser: true,
es6: true,
},
extends: ['eslint:recommended'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
plugins: ['svelte3'],
overrides: [
{
files: ['*.svelte'],
processor: 'svelte3/svelte3',
},
],
rules: {
semi: ['error', 'always'],
'keyword-spacing': ['error', { before: true, after: true }],
'space-before-blocks': ['error', 'always'],
'arrow-spacing': 'error',
'max-len': [
'error',
{ code: 100, ignoreComments: true, ignoreStrings: true },
],
'no-trailing-spaces': 'error',
'no-const-assign': 'error',
'no-class-assign': 'error',
'no-this-before-super': 'error',
'no-unreachable': 'error',
'prefer-arrow-callback': 'error',
'prefer-const': ['error', { destructuring: 'all' }],
'one-var': ['error', 'never'],
'no-inner-declarations': 'off',
},
};