This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
forked from dyc3/opentogethertube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (48 loc) · 1.65 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
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'eslint:recommended',
'plugin:vue/base',
'plugin:vue/essential',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'array-bracket-newline': ['error', { "multiline": true, "minItems": 2 }],
'array-bracket-spacing': ['error', 'never'],
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': false }],
'comma-dangle': ['error', {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'never',
'exports': 'always-multiline',
'functions': 'never',
}],
'comma-spacing': ['error', {'before': false, 'after': true}],
'curly': ['error', 'all'],
'func-call-spacing': ['error', 'never'],
'implicit-arrow-linebreak': ['error', 'beside'],
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'no-eval': ['error', {}],
'no-multiple-empty-lines': ['error', { 'max': 1, 'maxBOF': 0 }],
'no-var': 'error',
'no-dupe-keys': 'error',
'prefer-arrow-callback': 'error',
'semi': ['error', 'always'],
'semi-spacing': ["error", {"before": false, "after": true}],
'space-before-blocks': ['error', 'always'],
'eol-last': ["error", "always"],
// HACK: this rule is required, otherwise travis-ci will fail (for some reason)
// even through when run locally, no linting errors occur.
"vue/no-parsing-error": ["error", {
"invalid-first-character-of-tag-name": false,
}],
},
parserOptions: {
ecmaVersion: 6,
parser: 'babel-eslint'
}
};