Skip to content

Commit

Permalink
fixup! style: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Mar 16, 2022
1 parent 99c84db commit 7a55b0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/codemods/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["plugin:@fluentui/eslint-plugin/node"],
"extends": ["plugin:@fluentui/eslint-plugin/node", "plugin:@fluentui/eslint-plugin/react"],
"root": true,
"overrides": [
{
Expand Down
4 changes: 4 additions & 0 deletions packages/codemods/src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ export class CommandParser {
}
if (parsed.list) {
const mods = getEnabledMods(console, getModsPaths);
// eslint-disable-next-line no-console
console.log('Here are the enabled code mod names:\n');
mods.forEach(mod => {
// eslint-disable-next-line no-console
console.log(mod.name);
});
return { shouldExit: true, modsFilter: () => true };
Expand All @@ -86,6 +88,7 @@ export class CommandParser {
if (configResult.ok) {
configObj = configResult.value;
} else {
// eslint-disable-next-line no-console
console.log(configResult.value);
return { shouldExit: true, modsFilter: () => true };
}
Expand Down Expand Up @@ -115,6 +118,7 @@ function getModRunnerConfig(): Result<ModRunnerConfigType, ModError> {
sync: true,
});
let configObj: ModRunnerConfigType = { stringFilters: [], regexFilters: [], includeMods: false };
// eslint-disable-next-line no-console
console.log('Configuration detected. Attempting to run mods from config...');
if (!foundJsonFile.found || foundJsonFile.found.length !== 1) {
return Err<ModRunnerConfigType, ModError>({ error: new Error('Error, could not locate correct config file.') });
Expand Down
2 changes: 1 addition & 1 deletion scripts/tasks/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const eslint = eslintTask({
// TODO: also lint config files?
files: [path.join(process.cwd(), constants.directory)],
extensions: constants.extensions,
cache: true, // only lint files changed since last lint
// cache: true, // only lint files changed since last lint
fix: process.argv.includes('--fix'),
// If requested, display a table with 10 slowest rules after running.
// (to display more, edit the `slice` call in the `display` function of node_modules/eslint/lib/linter/timing.js)
Expand Down

0 comments on commit 7a55b0c

Please sign in to comment.