-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 loc) · 1.15 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'@vue/airbnb',
],
parserOptions: {
parser: '@babel/eslint-parser',
},
rules: {
camelcase: 'off',
'consistent-return': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-cycle': 'off',
indent: ['error', 4],
'max-len': 'off',
'no-await-in-loop': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-continue': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'no-underscore-dangle': 'off',
'prefer-destructuring': 'off',
radix: ['error', 'as-needed'],
semi: ['error', 'never'],
'vue/multi-word-component-names': 'off',
},
}