Skip to content

Commit

Permalink
chore: Add noExplicitAny: off to Biome
Browse files Browse the repository at this point in the history
  • Loading branch information
angelmadames committed Mar 13, 2024
1 parent 47978c9 commit c8cfb39
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"recommended": true,
"nursery": {
"noUnusedImports": "warn"
},
"suspicious": {
"noExplicitAny": "off"
}
}
},
Expand Down
10 changes: 5 additions & 5 deletions src/utils/log.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import chalk from 'chalk';

const log = {
info: (text: string[], ...optionalParams: string[]) => {
info: (text?: any, ...optionalParams: any[]) => {
return console.log(chalk.blue(text), optionalParams);
},

success: (text: string[], ...optionalParams: string[]) => {
success: (text?: any, ...optionalParams: any[]) => {
return console.log(chalk.green(text), optionalParams);
},

warning: (text: string[], ...optionalParams: string[]) => {
warning: (text?: any, ...optionalParams: any[]) => {
return console.log(chalk.yellow(text), optionalParams);
},

dimmedWarning: (text: string[], ...optionalParams: string[]) => {
dimmedWarning: (text?: any, ...optionalParams: any[]) => {
return console.log(chalk.dim.yellow(text), optionalParams);
},

error: (text: string[], ...optionalParams: string[]) => {
error: (text?: any, ...optionalParams: any[]) => {
return console.log(chalk.red(text), optionalParams);
},
};
Expand Down
2 changes: 0 additions & 2 deletions src/utils/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { isFile } from './file-system';
import log from './log';

export const flattenObject = (
// biome-ignore lint/suspicious/noExplicitAny:
object: Record<string, any>,
parentKey = '',
separator = '_',
Expand Down Expand Up @@ -62,7 +61,6 @@ export const replaceKeysInFile = (
if (verbose) `File ${filePath} is not a valid file.`;
}

// biome-ignore lint/suspicious/noExplicitAny:
const map: Map<string, any> =
replaceMap instanceof Map
? replaceMap
Expand Down

0 comments on commit c8cfb39

Please sign in to comment.