forked from zazuko/prefix-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1.23 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
'cypress/globals': true
},
plugins: [
'vue',
'cypress'
],
extends: [
'@nuxtjs',
'plugin:nuxt/recommended',
'plugin:vue/strongly-recommended',
'plugin:cypress/recommended',
'standard'
],
// add your custom rules here
rules: {
'no-console': 1,
'vue/require-prop-types': 0,
'vue/html-self-closing': 0,
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/singleline-html-element-content-newline': 0,
'vue/multiline-html-element-content-newline': 0,
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never'
}],
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-lonely-if': 'error',
quotes: ['error', 'single', { avoidEscape: true }],
'callback-return': ['error', ['done', 'callback', 'cb', 'send']],
'object-shorthand': 'error',
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'brace-style': ['error', 'stroustrup', { allowSingleLine: false }],
curly: ['error', 'all']
}
}