-
Notifications
You must be signed in to change notification settings - Fork 50
/
.eslintrc.js
48 lines (48 loc) · 1.15 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
module.exports = {
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
env: {
es6: true,
browser: true,
},
plugins: [],
extends: ['plugin:svelte/recommended'],
overrides: [
{
files: ['**/*.svelte'],
parser: "svelte-eslint-parser",
},
],
rules: {
semi: ['warn', 'never'],
quotes: ['error', 'single'],
'dot-location': ['warn', 'property'],
'guard-for-in': ['warn'],
'no-multi-spaces': ['warn'],
yoda: ['warn', 'never'],
camelcase: ['error'],
'comma-style': ['warn'],
'comma-dangle': ['warn', 'always-multiline'],
'block-spacing': ['warn'],
'keyword-spacing': ['warn'],
'no-trailing-spaces': ['warn'],
'no-unneeded-ternary': ['warn'],
'no-whitespace-before-property': ['warn'],
'object-curly-spacing': ['warn', 'always'],
'space-before-blocks': ['warn'],
'space-in-parens': ['warn'],
'arrow-spacing': ['warn'],
'no-duplicate-imports': ['error'],
'no-var': ['error'],
'prefer-const': ['warn'],
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
}