Commit b1ccc8a0 authored by lipengcheng 's avatar lipengcheng

一些优化

parent 3fdc97fa
......@@ -10,7 +10,7 @@ module.exports = {
// 3: ESLint + Standard config
// extends: [ 'plugin:vue/essential', '@vue/airbnb',],
// ESLint + Prettier
extends: ['plugin:vue/recommended', 'eslint:recommended'],
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
plugins: [],
parserOptions: {
parser: 'babel-eslint'
......@@ -30,7 +30,7 @@ module.exports = {
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
indent: [
'error',
2,
4,
{
SwitchCase: 1,
flatTernaryExpressions: true
......@@ -41,7 +41,7 @@ module.exports = {
semi: ['error', 'never'],
'vue/html-indent': [
'error',
2,
4,
{
attribute: 1,
baseIndent: 1,
......@@ -54,8 +54,8 @@ module.exports = {
'error',
{
html: {
void: 'never',
normal: 'never',
void: 'any',
normal: 'any',
component: 'never'
},
svg: 'never',
......
......@@ -17,7 +17,7 @@ module.exports = {
// true: { foo: bar }
// false: {foo: bar}
bracketSpacing: true,
// JSX标签闭合位置 默认false
// JSX标签闭合位置 >是否单独放一行 默认false
// false: <div
// className=""
// style={{}}
......@@ -25,15 +25,13 @@ module.exports = {
// true: <div
// className=""
// style={{}} >
// jsxBracketSameLine:false,
jsxBracketSameLine: false,
// 箭头函数参数括号 默认avoid 可选 avoid| always
// avoid 能省略括号的时候就省略 例如x => x
// always 总是有括号
arrowParens: 'always',
// 结尾是 \n \r \n\r auto
endOfLine: "auto",
// 在jsx中把'>' 是否单独放一行
jsxBracketSameLine: false,
}
......@@ -15,7 +15,7 @@ export default {
}
},
async created() {
console.log(`this.route:`, this.route)
console.log('this.route:', this.route)
},
methods: {
async request() {
......
......@@ -2,20 +2,9 @@
<div class="comp-bao2">
<h1>home</h1>
<input
ref="input"
type="file"
:accept="accept"
name="files[]"
style="display:none;"
aaa="dfsdfsfsdfddfsdfsfsdfdsfsdfdsf"
>
<input ref="input" type="file" :accept="accept" name="files[]" style="display:none;" aaa="dfsdfsfsdfddfsdfsfsdfdsfsdfdsf" />
<videoPlayer
aaa="dfasfsdffdsdfsdsffdsfdfdsf"
bbb="fsfdsfsdfdsfdsfdsfdsfdfdsf"
ccc="fsfdsfsdfdsfdsfdsfdsfdfdsf"
></videoPlayer>
<videoPlayer aaa="dfasfsdffdsdfsdsffdsfdfdsf"></videoPlayer>
</div>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment