mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
build: use vue recommend eslint config
This commit is contained in:
+16
-2
@@ -1,13 +1,27 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
|
||||
extends: [
|
||||
'plugin:vue-libs/recommended'
|
||||
'plugin:vue-libs/recommended',
|
||||
'plugin:vue/recommended'
|
||||
],
|
||||
|
||||
rules: {
|
||||
indent: ['error', 2, { MemberExpression: 'off' }],
|
||||
|
||||
'no-undef': ['error'],
|
||||
'operator-linebreak': ['error', 'before']
|
||||
|
||||
'operator-linebreak': ['error', 'before'],
|
||||
|
||||
'vue/match-component-file-name': [
|
||||
'error',
|
||||
{
|
||||
extensions: ['js', 'vue'],
|
||||
shouldMatchCase: false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.ts'],
|
||||
|
||||
Reference in New Issue
Block a user