You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
478 B
21 lines
478 B
3 years ago
|
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
|
||
|
}
|