Skip to content

Commit ceab89b

Browse files
committed
style(cli): fix the linting
1 parent 03101af commit ceab89b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/@vue/cli-plugin-typescript/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ module.exports = (api, projectOptions) => {
4949
if (api.hasPlugin('babel')) {
5050
addLoader({
5151
// TODO: I guess the intent is to require the `babel-loader` provided by the Babel vue
52-
// plugin, but that means we now rely on the hoisting. It should instead we queried
52+
// plugin, but that means we now rely on the hoisting. It should instead be queried
5353
// against the plugin itself, or through a peer dependency.
54+
// eslint-disable-next-line node/no-extraneous-require
5455
loader: require.resolve('babel-loader')
5556
})
5657
}

packages/@vue/cli-service/lib/config/css.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ module.exports = (api, rootOptions) => {
161161
}
162162

163163
if (loader) {
164-
let resolvedLoader;
164+
let resolvedLoader
165165
try {
166166
resolvedLoader = require.resolve(loader)
167167
} catch (error) {

packages/@vue/cli-service/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"thread-loader": "^2.1.2",
7474
"url-loader": "^2.1.0",
7575
"vue-loader": "^15.7.0",
76+
"vue-style-loader": "^4.1.0",
7677
"webpack": "^4.0.0",
7778
"webpack-bundle-analyzer": "^3.3.2",
7879
"webpack-chain": "^6.0.0",

0 commit comments

Comments
 (0)