-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
57 lines (47 loc) · 1.4 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
module.exports = {
root: true,
plugins: ['import'],
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2018,
},
env: {
browser: true,
webextensions: true,
es6: true,
},
extends: [
'eslint:recommended',
],
// add your custom rules here
rules: {
// always semicolon (reduces diffs)
semi: ['error', 'always'],
// trailing comma in multiline (reduces diffs)
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
},
],
'indent': ['error', 4],
'brace-style': ['error', '1tbs', { 'allowSingleLine': false, }],
'curly': ['error'],
'quotes': ['error', 'single'],
'prefer-template': ['error'],
'no-trailing-spaces': ['error'],
'prefer-const': ['error'],
'one-var': ['error', 'never'],
'import/no-unresolved': ['error', {caseSensitive: true}],
'import/named': ['error'],
'import/no-duplicates': ['error'],
'import/no-namespace': ['error'],
'import/no-default-export': ['error'],
'import/no-anonymous-default-export': ['error'],
},
};