-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
48 lines (48 loc) · 915 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: '@babel/eslint-parser',
requireConfigFile: false
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended'
],
plugins: [
],
// add your custom rules here
rules: {
'no-console': 'off',
'arrow-body-style': ['error', 'as-needed'],
'class-methods-use-this': 2,
'linebreak-style': 2,
semi: [2, 'always'],
quotes: [2, 'single'],
'max-len': [
'error',
{
code: 120,
ignoreUrls: true,
ignoreComments: true,
ignoreStrings: true,
ignoreTemplateLiterals: true
}
],
'new-cap': [
2,
{
capIsNew: false,
newIsCap: true
}
],
'no-param-reassign': 2,
'no-shadow': 2,
'no-tabs': 2,
'no-underscore-dangle': 2,
'vue/multi-word-component-names': 1
}
};