Skip to content

Commit 2d56c19

Browse files
committed
fix: correctly export makeJSOnlyValue
1 parent 874df7c commit 2d56c19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: packages/@vue/cli-plugin-eslint/eslintOptions.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ exports.config = (api, preset, rootOptions = {}) => {
5454

5555
// __expression is a special flag that allows us to customize stringification
5656
// output when extracting configs into standalone files
57-
exports.makeJSOnlyValue = function makeJSOnlyValue (str) {
57+
function makeJSOnlyValue (str) {
5858
const fn = () => {}
5959
fn.__expression = str
6060
return fn
6161
}
62+
exports.makeJSOnlyValue = makeJSOnlyValue
6263

6364
const baseExtensions = ['.js', '.jsx', '.vue']
6465
exports.extensions = api => api.hasPlugin('typescript')

0 commit comments

Comments
 (0)