前端eslint调整
This commit is contained in:
+3
-11
@@ -1,9 +1,7 @@
|
||||
//@author: [bstdn](https://github.com/bstdn)
|
||||
//@description: ESlint 语法检测
|
||||
module.exports = {
|
||||
root: true,
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint',
|
||||
parser: '@babel/eslint-parser',
|
||||
sourceType: 'module'
|
||||
},
|
||||
env: {
|
||||
@@ -12,18 +10,12 @@ module.exports = {
|
||||
es6: true
|
||||
},
|
||||
extends: ['plugin:vue/recommended', 'eslint:recommended'],
|
||||
globals: {
|
||||
defineProps: "readonly",
|
||||
defineEmits: "readonly",
|
||||
defineExpose: "readonly",
|
||||
withDefaults: "readonly",
|
||||
},
|
||||
rules: {
|
||||
'vue/no-v-model-argument':'off',
|
||||
'vue/no-v-model-argument': 0,
|
||||
'vue/max-attributes-per-line': 2,
|
||||
'vue/singleline-html-element-content-newline': 'off',
|
||||
'vue/multiline-html-element-content-newline': 'off',
|
||||
'vue/name-property-casing': ['error', 'PascalCase'],
|
||||
'vue/multi-word-component-names': 'off',
|
||||
'vue/no-v-html': 'off',
|
||||
'accessor-pairs': 2,
|
||||
'arrow-spacing': [
|
||||
|
||||
Reference in New Issue
Block a user