1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@vue/cli-plugin-eslint/ui/taskDescriptor.js

21 lines
478 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
const task = {
match: /vue-cli-service lint/,
description: 'org.vue.eslint.tasks.lint.description',
link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint#injected-commands',
prompts: [
{
name: 'noFix',
type: 'confirm',
default: false,
description: 'org.vue.eslint.tasks.lint.noFix'
}
],
onBeforeRun: ({ answers, args }) => {
if (answers.noFix) args.push('--no-fix')
}
}
module.exports = {
task
}