-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
57 lines (57 loc) · 1.4 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
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: ['@nuxtjs/eslint-config-typescript', 'plugin:vue/vue3-recommended'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
// parser: 'babel-eslint',
// parser: '@babel/eslint-parser',
requireConfigFile: false
},
plugins: ['vue'],
rules: {
camelcase: 'off',
'new-parens': 'off',
// 'space-before-function-paren': 0,
'import/named': 'off',
'vue/no-deprecated-v-on-native-modifier': 'off',
'no-param-reassign': 'off',
'import/prefer-default-export': 'off',
'no-console': 'off',
'vue/multi-word-component-names': 0,
'max-len': [0], // warn, maximum length of 80, tab width 4 max-len: [1, 80, 4]
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
pathGroups: [
{
pattern: '@/config',
group: 'internal',
position: 'before'
}
]
}
],
'no-unused-expressions': 'off'
},
overrides: [
{
files: [
'**/plugins/**/*.{js,ts,vue}',
'**/pages/**/*.{js,ts,vue}',
'**/layouts/**/*.{js,ts,vue}',
'**/app.{js,ts,vue}',
'**/error.{js,ts,vue}'
],
rules: {
semi: [2, 'always'],
'vue/multi-word-component-names': 'off'
}
}
]
}