Skip to content

Commit 8238844

Browse files
committedNov 18, 2024·
chore: fix lint issues
1 parent e851525 commit 8238844

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed
 

‎eslint.config.mjs

+8-7
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import unjs from "eslint-config-unjs";
44
export default unjs({
55
ignores: [],
66
rules: {
7-
"no-undef": 0,
8-
"unicorn/prefer-module": 0,
9-
"unicorn/prefer-top-level-await": 0,
10-
"unicorn/no-null": 0,
11-
"@typescript-eslint/no-unused-vars": 0
12-
},
13-
});
7+
"no-undef": 0,
8+
"unicorn/prefer-module": 0,
9+
"unicorn/prefer-top-level-await": 0,
10+
"unicorn/no-null": 0,
11+
"@typescript-eslint/no-unused-vars": 0,
12+
"unicorn/expiring-todo-comments": 0,
13+
},
14+
});

‎examples/raw.ts

-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ consola.log({ message: "hello" });
77
consola.log('consola.log.raw({ message: "hello" })');
88
// Prints "{ message: 'hello' }"
99
consola.log.raw({ message: "hello" });
10-
``;

‎lib/index.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line @typescript-eslint/no-require-imports
12
const lib = require("../dist/index.cjs");
23

34
module.exports = lib.consola;

‎src/constants.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { LogObject } from "./types";
66
* @type {0 | 1 | 2 | 3 | 4 | 5 | (number & {})} LogLevel - Represents the log level.
77
* @default 0 - Represents the default log level.
88
*/
9-
// eslint-disable-next-line @typescript-eslint/ban-types
109
export type LogLevel = 0 | 1 | 2 | 3 | 4 | 5 | (number & {});
1110

1211
/**

‎src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function createConsola(
3131
stderr: process.stderr,
3232
prompt: (...args) => import("./prompt").then((m) => m.prompt(...args)),
3333
reporters: options.reporters || [
34-
options.fancy ?? !(isCI || isTest)
34+
(options.fancy ?? !(isCI || isTest))
3535
? new FancyReporter()
3636
: new BasicReporter(),
3737
],

‎src/utils/prompt.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,6 @@ export interface PromptGroupOptions<T> {
10391039
}) => void;
10401040
}
10411041

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

0 commit comments

Comments
 (0)
Please sign in to comment.