-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.eslintrc.cjs
41 lines (41 loc) · 939 Bytes
/
.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
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
project: 'tsconfig.eslint.json',
sourceType: 'module',
extraFileExtensions: ['.vue'],
},
env: {
es6: true,
node: true,
jest: true,
browser: true,
},
extends: [
'plugin:vue/vue3-essential',
'@vue/eslint-config-typescript',
'standard',
],
rules: {
'comma-dangle': ['error', 'always-multiline'],
'import/order': ['error', {
groups: [
['builtin', 'external'],
['unknown', 'internal'],
['parent', 'sibling', 'index'],
],
pathGroups: [
{ pattern: '@/**', group: 'internal' },
{ pattern: '@!(/)**', group: 'external' },
],
pathGroupsExcludedImportTypes: [],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
'newlines-between': 'always',
}],
},
}