/
.eslintrc.js
39 lines (39 loc) · 1 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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ['plugin:vue/essential', 'airbnb-base', 'prettier'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['vue', 'import'],
settings: {
'import/resolver': {
alias: {
map: [
['@', './src'], // default @ -> ./src alias in Vue, it exists even if vue.config.js is not present
/*
*... add your own webpack aliases if you have them in vue.config.js/other webpack config file
* if you forget to add them, eslint-plugin-import will not throw linting error in .vue imports that contain the webpack alias you forgot to add
*/
],
extensions: ['.vue', '.json', '.js'],
},
},
},
rules: {
'no-unused-vars': 'off',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
vue: 'always',
},
],
'vue/no-multiple-template-root': 'off',
},
}