-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (44 loc) · 1.08 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
const path = require('path');
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'plugin:vue/essential',
'airbnb-base',
],
parserOptions: {
ecmaVersion: 12,
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: ['vue', '@typescript-eslint'],
rules: {
indent: ['error', 4],
'no-param-reassign': [2, { props: false }],
'vue/no-multiple-template-root': 0,
'import/extensions': ['error', 'always',
{ ts: 'never' },
],
},
settings: {
'import/resolver': {
alias: {
map: [['@', path.resolve(__dirname, 'src')]],
extensions: ['.js', '.vue', 'ts'],
},
node: {
extensions: [
'.js',
'.jsx',
'.ts',
'.tsx',
],
},
},
'import/parses': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
},
};