Skip to content

Commit 0e9c880

Browse files
fix: make eslint compatible with prettier
1 parent e436a5a commit 0e9c880

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.eslintrc.js

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,15 @@ require('@rushstack/eslint-patch/modern-module-resolution')
44
module.exports = {
55
root: true,
66
extends: [
7-
// add more generic rulesets here, such as:
8-
'plugin:import/errors',
7+
'plugin:vue/vue3-essential',
98
'eslint:recommended',
10-
'plugin:vue/vue3-recommended',
9+
'@vue/eslint-config-typescript',
1110
'@vue/eslint-config-prettier/skip-formatting',
1211
],
13-
parserOptions: {
14-
ecmaVersion: 'latest',
15-
},
16-
env: {
17-
browser: true,
18-
amd: true,
19-
node: true,
20-
},
2112
rules: {
22-
'strict': 'error',
2313
'vue/multi-word-component-names': 'off',
2414
'object-curly-spacing': ['error', 'always'],
2515
'operator-linebreak': ['error', 'after'],
26-
'comma-dangle': ['error', 'never'],
27-
'import/no-duplicates': 'error',
28-
'import/no-unresolved': 0,
2916
'semi': ['error', 'never'],
3017
'indent': [
3118
'error',
@@ -35,7 +22,8 @@ module.exports = {
3522
SwitchCase: 1,
3623
},
3724
],
38-
// override/add rules settings here, such as:
39-
'vue/no-unused-vars': 'error',
25+
},
26+
parserOptions: {
27+
ecmaVersion: 'latest',
4028
},
4129
}

0 commit comments

Comments
 (0)