File tree 6 files changed +10
-11
lines changed
6 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ import unjs from "eslint-config-unjs";
4
4
export default unjs ( {
5
5
ignores : [ ] ,
6
6
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
+ } ) ;
Original file line number Diff line number Diff line change @@ -7,4 +7,3 @@ consola.log({ message: "hello" });
7
7
consola . log ( 'consola.log.raw({ message: "hello" })' ) ;
8
8
// Prints "{ message: 'hello' }"
9
9
consola . log . raw ( { message : "hello" } ) ;
10
- `` ;
Original file line number Diff line number Diff line change
1
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
1
2
const lib = require ( "../dist/index.cjs" ) ;
2
3
3
4
module . exports = lib . consola ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { LogObject } from "./types";
6
6
* @type {0 | 1 | 2 | 3 | 4 | 5 | (number & {}) } LogLevel - Represents the log level.
7
7
* @default 0 - Represents the default log level.
8
8
*/
9
- // eslint-disable-next-line @typescript-eslint/ban-types
10
9
export type LogLevel = 0 | 1 | 2 | 3 | 4 | 5 | ( number & { } ) ;
11
10
12
11
/**
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function createConsola(
31
31
stderr : process . stderr ,
32
32
prompt : ( ...args ) => import ( "./prompt" ) . then ( ( m ) => m . prompt ( ...args ) ) ,
33
33
reporters : options . reporters || [
34
- options . fancy ?? ! ( isCI || isTest )
34
+ ( options . fancy ?? ! ( isCI || isTest ) )
35
35
? new FancyReporter ( )
36
36
: new BasicReporter ( ) ,
37
37
] ,
Original file line number Diff line number Diff line change @@ -1039,7 +1039,6 @@ export interface PromptGroupOptions<T> {
1039
1039
} ) => void ;
1040
1040
}
1041
1041
1042
- // eslint-disable-next-line @typescript-eslint/ban-types
1043
1042
type Prettify < T > = { } & {
1044
1043
[ P in keyof T ] : T [ P ] ;
1045
1044
} ;
You can’t perform that action at this time.
0 commit comments