-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
65 lines (65 loc) · 1.24 KB
/
.eslintrc.cjs
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
59
60
61
62
63
64
65
module.exports = {
env: {
node: true,
browser: true,
es2021: true
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-essential',
'plugin:import/recommended'
],
overrides: [],
parserOptions: {
'ecmaVersion': 'latest',
'sourceType': 'module'
},
globals: {
$api: true,
$bu: true,
defineProps: true
},
plugins: [
'vue'
],
settings: {
// https://www.npmjs.com/package/eslint-import-resolver-alias
'import/resolver': {
alias: {
map: [
['@', './src'],
['@lay', './src/layout'],
['@com', './src/components'],
['@ld', './src/layout/Default/index.vue']
],
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
}
}
},
rules: {
semi: [2, 'never'],
'import/prefer-default-export': 0,
'import/no-unresolved': [
2,
{
commonjs: true,
amd: true,
caseSensitive: false
}
],
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never'
}
],
'import/named': 0,
'import/namespace': 2,
'import/default': 2,
'import/export': 2
}
}