This repository has been archived by the owner on Nov 24, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
81 lines (81 loc) · 2.44 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
module.exports = {
root: true,
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
env: {
browser: true,
node: true,
es6: true
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
// 'indent': [1, 2],
'eol-last': 0,
'camelcase': 0,
'comma-dangle': [0, 'never'],
// Doesn't work inside ES6 template strings
'comma-spacing': 0,
'consistent-return': 0,
'curly': [2, 'multi-line'],
'dot-notation': [0, {'allowKeywords': true, 'allowPattern': ''}],
'eqeqeq': [0, 'smart'],
'no-alert': 0,
'no-else-return': 0,
'strict': [0, 'global'],
'brace-style': [1, '1tbs'],
'comma-style': [1, 'last'],
'no-console': 0,
'no-lonely-if': 0,
'no-loop-func': 1,
'no-multi-spaces': [1, { 'exceptions': { 'VariableDeclarator': true, 'ImportDeclaration': true } }],
'no-multiple-empty-lines': 0,
'no-mixed-requires': 2,
'no-mixed-spaces-and-tabs': [2, false],
'no-underscore-dangle': 0,
'no-var': 0,
'no-duplicate-case': 0,
'no-func-assign': 0,
'no-proto': 0,
'no-new': 0,
'no-new-func': 0,
'no-sequences': 1,
// Doesn't work with ES6 classes
// https://github.com/babel/babel-eslint/issues/8
'no-unused-vars': [1, {'vars': 'all', 'args': 'none'}],
// Doesn't work with await
// https://github.com/babel/babel-eslint/issues/22
'no-unused-expressions': 0,
// Doesn't work with classes
// https://github.com/babel/babel-eslint/issues/8
'no-undef': 0,
'no-empty': 0,
'no-use-before-define': [2, 'nofunc'],
'quotes': [1, 'single', 'avoid-escape'],
'space-before-function-paren': [1, {'anonymous': 'never', 'named': 'never'}],
'keyword-spacing': [1, {'before': true, 'after': true, 'overrides': {}}],
'space-before-blocks': [1, 'always'],
'space-in-brackets': [0, 'never'],
'space-in-parens': [1, 'never'],
'space-infix-ops': [0, {'int32Hint': true}],
'spaced-comment': [0, 'always'],
'semi': [0, 'always'],
'new-cap': 0,
'no-unreachable': [1],
'one-var': 0,
'padded-blocks': 0,
'no-throw-literal': 0,
'handle-callback-err': 0
}
}