Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 18, 2024
1 parent e851525 commit 8238844
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
15 changes: 8 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import unjs from "eslint-config-unjs";
export default unjs({
ignores: [],
rules: {
"no-undef": 0,
"unicorn/prefer-module": 0,
"unicorn/prefer-top-level-await": 0,
"unicorn/no-null": 0,
"@typescript-eslint/no-unused-vars": 0
},
});
"no-undef": 0,
"unicorn/prefer-module": 0,
"unicorn/prefer-top-level-await": 0,
"unicorn/no-null": 0,
"@typescript-eslint/no-unused-vars": 0,
"unicorn/expiring-todo-comments": 0,
},
});
1 change: 0 additions & 1 deletion examples/raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ consola.log({ message: "hello" });
consola.log('consola.log.raw({ message: "hello" })');
// Prints "{ message: 'hello' }"
consola.log.raw({ message: "hello" });
``;
1 change: 1 addition & 0 deletions lib/index.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-require-imports
const lib = require("../dist/index.cjs");

module.exports = lib.consola;
Expand Down
1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { LogObject } from "./types";
* @type {0 | 1 | 2 | 3 | 4 | 5 | (number & {})} LogLevel - Represents the log level.
* @default 0 - Represents the default log level.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
export type LogLevel = 0 | 1 | 2 | 3 | 4 | 5 | (number & {});

/**
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function createConsola(
stderr: process.stderr,
prompt: (...args) => import("./prompt").then((m) => m.prompt(...args)),
reporters: options.reporters || [
options.fancy ?? !(isCI || isTest)
(options.fancy ?? !(isCI || isTest))
? new FancyReporter()
: new BasicReporter(),
],
Expand Down
1 change: 0 additions & 1 deletion src/utils/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,6 @@ export interface PromptGroupOptions<T> {
}) => void;
}

// eslint-disable-next-line @typescript-eslint/ban-types
type Prettify<T> = {} & {
[P in keyof T]: T[P];
};
Expand Down

0 comments on commit 8238844

Please sign in to comment.