-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
executable file
·58 lines (58 loc) · 1.33 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
58
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:vue/essential',
'plugin:@typescript-eslint/recommended',
'plugin:promise/recommended',
'plugin:import/recommended',
'@nuxtjs/eslint-config-typescript',
],
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: ['vue', '@typescript-eslint'],
rules: {
'comma-dangle': [0],
semi: [0],
indent: [0],
'no-console': [0],
'arrow-parens': [0],
'prettier/prettier': 'error',
'import/no-unresolved': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'import/extensions': [1],
'import/no-named-as-default': [0],
camelcase: [0],
'no-tabs': [0],
'space-before-function-paren': [0],
'global-require': [0],
'vue/html-indent': [0],
'no-plusplus': ['off', { allowForLoopAfterthoughts: true }],
'vue/attribute-hyphenation': [0],
'vue/html-closing-bracket-newline': [1],
'vue/singleline-html-element-content-newline': [
'off',
{
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['pre', 'textarea'],
},
],
'vue/multiline-html-element-content-newline': [
'warn',
{
ignoreWhenEmpty: true,
ignores: ['pre', 'textarea'],
allowEmptyLines: false,
},
],
},
};