forked from vuetifyjs/vuetify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (56 loc) · 1.22 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
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2017,
sourceType: 'module'
},
extends: [
'standard'
],
env: {
browser: true
},
globals: {
'expect': true,
'describe': true,
'it': true,
'jest': true,
'process': true
},
plugins: [
'eslint-plugin-local-rules'
],
rules: {
// allow paren-less arrow functions
'arrow-parens': [2, 'as-needed'],
'local-rules/no-render-string-reference': 2,
// set maximum line characters
'max-len': [2, 140, 4, {
'ignoreUrls': true,
'ignoreTemplateLiterals': true,
'ignoreStrings': true
}],
'max-statements': [2, 24],
'no-console': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-return-assign': 0,
'prefer-promise-reject-errors': 0,
'no-unused-vars': ['error', {
vars: 'all',
args: 'after-used',
ignoreRestSiblings: false
}],
'no-empty': 'error',
'object-curly-spacing': ['error', 'always'],
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'always',
asyncArrow: 'always'
}
]
}
}