【add】添加ESLint配置
This commit is contained in:
@@ -1 +0,0 @@
|
||||
/src
|
||||
@@ -0,0 +1,32 @@
|
||||
module.exports = {
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"es6": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
],
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parser": "vue-eslint-parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module",
|
||||
"parser": "babel-eslint"
|
||||
},
|
||||
"plugins": [
|
||||
"vue"
|
||||
],
|
||||
"rules": {
|
||||
'quotes': [2, 'single', {
|
||||
'avoidEscape': true,
|
||||
'allowTemplateLiterals': true
|
||||
}],
|
||||
'semi': [2, 'never'],
|
||||
'no-console': 'off',
|
||||
}
|
||||
|
||||
}
|
||||
@@ -11,7 +11,7 @@
|
||||
import Tooltip from 'ant-design-vue/es/tooltip'
|
||||
|
||||
export default {
|
||||
name: "AvatarItem",
|
||||
name: 'AvatarItem',
|
||||
components: {
|
||||
Avatar,
|
||||
Tooltip
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
export default {
|
||||
AvatarItem,
|
||||
name: "AvatarList",
|
||||
name: 'AvatarList',
|
||||
components: {
|
||||
Avatar,
|
||||
AvatarItem
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import AvatarList from './List'
|
||||
import "./index.less"
|
||||
import './index.less'
|
||||
|
||||
export default AvatarList
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "SettingItem",
|
||||
name: 'SettingItem',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
}
|
||||
|
||||
export default {
|
||||
name: "DetailList",
|
||||
name: 'DetailList',
|
||||
Item: Item,
|
||||
components: {
|
||||
Col
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "FooterToolBar"
|
||||
name: 'FooterToolBar'
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const path = require('path')
|
||||
const CompressionPlugin = require("compression-webpack-plugin")
|
||||
const CompressionPlugin = require('compression-webpack-plugin')
|
||||
|
||||
function resolve (dir) {
|
||||
return path.join(__dirname, dir)
|
||||
@@ -58,7 +58,6 @@ module.exports = {
|
||||
.use()
|
||||
.loader('babel-loader')
|
||||
.end()
|
||||
|
||||
},
|
||||
|
||||
css: {
|
||||
@@ -68,9 +67,9 @@ module.exports = {
|
||||
/* less 变量覆盖,用于自定义 ant design 主题 */
|
||||
'primary-color': '#1890FF',
|
||||
'link-color': '#1890FF',
|
||||
'border-radius-base': '4px',
|
||||
'border-radius-base': '4px'
|
||||
},
|
||||
javascriptEnabled: true,
|
||||
javascriptEnabled: true
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -93,7 +92,7 @@ module.exports = {
|
||||
pathRewrite: {
|
||||
'/jero-boot': '' // 默认所有请求都加了jero-boot前缀,需要去掉
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user