-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.22 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
module.exports = {
env: {
'node': true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:import/recommended',
],
globals: {
'axios': 'readonly',
'route': 'readonly',
},
overrides: [
{
files: ['*.vue'],
parser: 'vue-eslint-parser',
parserOptions: { 'parser': '@typescript-eslint/parser' }
},
{
files: ['*.ts'],
parser: '@typescript-eslint/parser',
}
],
rules: {
'array-bracket-spacing': ['warn', 'never'],
'comma-dangle': ['warn', 'only-multiline'],
'import/order': 'warn',
'indent': ['warn', 2],
'key-spacing': ['warn', { beforeColon: false, afterColon: true }],
'linebreak-style': ['error', 'unix'],
'no-console': 'warn',
'object-curly-spacing': ['warn', 'always'],
'quotes': ['warn', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'semi': ['warn', 'never'],
'vue/component-name-in-template-casing': ['error', 'PascalCase', { registeredComponentsOnly: false }],
'vue/multi-word-component-names': 'off',
'vue/require-prop-types': 'off', // TODO: Remove
'vue/require-default-prop': 'off', // TODO: Remove
},
settings: {
'import/resolver': 'typescript',
},
}