eslint with fix
pitfall with CLIEngine()
eslint pitfall in custom CLI tool:
yargs.command(
"eslint",
"run the linter",
yargs => {
yargs
.option("fix", {
describe: "enable auto fixing option in eslint",
// ------***** BELOW *****---------
default: null
// ------***** ABOVE *****---------
});
},
argv => {
const eslint = require("./eslint").default;
eslint(argv);
}
)Programmatically linting (in custom cli)
Last updated