Skip to content

Commit 7425c1d

Browse files
committed
chore: 移除eslint
1 parent 1122c39 commit 7425c1d

File tree

9 files changed

+2
-234
lines changed

9 files changed

+2
-234
lines changed

ruoyi-fastapi-frontend/.eslintignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

ruoyi-fastapi-frontend/.eslintrc.js

Lines changed: 0 additions & 199 deletions
This file was deleted.

ruoyi-fastapi-frontend/package.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,7 @@
88
"dev": "vue-cli-service serve",
99
"build:prod": "vue-cli-service build",
1010
"build:stage": "vue-cli-service build --mode staging",
11-
"preview": "node build/index.js --preview",
12-
"lint": "eslint --ext .js,.vue src"
13-
},
14-
"husky": {
15-
"hooks": {
16-
"pre-commit": "lint-staged"
17-
}
18-
},
19-
"lint-staged": {
20-
"src/**/*.{js,vue}": [
21-
"eslint --fix",
22-
"git add"
23-
]
11+
"preview": "node build/index.js --preview"
2412
},
2513
"keywords": [
2614
"vue",
@@ -66,19 +54,14 @@
6654
},
6755
"devDependencies": {
6856
"@vue/cli-plugin-babel": "4.4.6",
69-
"@vue/cli-plugin-eslint": "4.4.6",
7057
"@vue/cli-service": "4.4.6",
71-
"babel-eslint": "10.1.0",
7258
"babel-plugin-dynamic-import-node": "2.3.3",
7359
"babel-plugin-import": "^1.13.8",
7460
"chalk": "4.1.0",
7561
"compression-webpack-plugin": "6.1.2",
7662
"connect": "3.6.6",
77-
"eslint": "7.15.0",
78-
"eslint-plugin-vue": "7.2.0",
7963
"less": "^3.13.1",
8064
"less-loader": "^5.0.0",
81-
"lint-staged": "10.5.3",
8265
"sass": "1.32.13",
8366
"sass-loader": "10.1.1",
8467
"script-ext-html-webpack-plugin": "2.1.5",

ruoyi-fastapi-frontend/src/components/PanThumb/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<slot />
66
</div>
77
</div>
8-
<!-- eslint-disable-next-line -->
98
<div :style="{backgroundImage: `url(${image})`}" class="pan-thumb"></div>
109
</div>
1110
</template>

ruoyi-fastapi-frontend/src/directive/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const install = function(Vue) {
1717
if (window.Vue) {
1818
window['hasRole'] = hasRole
1919
window['hasPermi'] = hasPermi
20-
Vue.use(install); // eslint-disable-line
20+
Vue.use(install);
2121
}
2222

2323
export default install

ruoyi-fastapi-frontend/src/utils/generator/html.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-len */
21
import { trigger } from './config'
32

43
let confGlobal

ruoyi-fastapi-frontend/src/views/tool/build/TreeNodeDialog.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export default {
115115
},
116116
computed: {},
117117
watch: {
118-
// eslint-disable-next-line func-names
119118
'formData.value': function (val) {
120119
this.dataType = isNumberStr(val) ? 'number' : 'string'
121120
}

ruoyi-fastapi-frontend/src/views/tool/build/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ export default {
190190
}
191191
},
192192
watch: {
193-
// eslint-disable-next-line func-names
194193
'activeData.label': function (val, oldVal) {
195194
if (
196195
this.activeData.placeholder === undefined

ruoyi-fastapi-frontend/vue.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ module.exports = {
2323
outputDir: 'dist',
2424
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
2525
assetsDir: 'static',
26-
// 是否开启eslint保存检测,有效值:ture | false | 'error'
27-
lintOnSave: process.env.NODE_ENV === 'development',
2826
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
2927
productionSourceMap: false,
3028
transpileDependencies: ['quill'],

0 commit comments

Comments
 (0)