Update lint-script.js
This commit is contained in:
@ -15,7 +15,7 @@ const TEMP_PATH = './temp';
|
|||||||
|
|
||||||
const codeRE = /```\s*js([\s\S]*?)```/g;
|
const codeRE = /```\s*js([\s\S]*?)```/g;
|
||||||
|
|
||||||
console.time('lint');
|
console.time('Linter');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const snippets = fs.readdirSync(SNIPPETS_PATH)
|
const snippets = fs.readdirSync(SNIPPETS_PATH)
|
||||||
@ -68,7 +68,8 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fs.removeSync(TEMP_PATH);
|
fs.removeSync(TEMP_PATH);
|
||||||
console.timeEnd('lint');
|
console.log(`${chalk.green('SUCCESS!')} Snippet files linted!`);
|
||||||
|
console.timeEnd('Linter');
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(`${chalk.red('ERROR!')} During linting: ${err}`);
|
console.log(`${chalk.red('ERROR!')} During linting: ${err}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user