File tree 5 files changed +7
-9
lines changed
5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
-
2
1
// https://nuxt.com/docs/api/configuration/nuxt-config
3
2
export default defineNuxtConfig ( {
4
3
devtools : { enabled : true } ,
Original file line number Diff line number Diff line change 41
41
"build" : " unbuild" ,
42
42
"dev" : " vitest dev" ,
43
43
"docs:generate" : " nuxi generate docs" ,
44
- "lint" : " eslint --fix ." ,
44
+ "lint" : " eslint ." ,
45
45
"prepare" : " npx simple-git-hooks && pnpm build" ,
46
46
"prepublishOnly" : " pnpm lint && pnpm test" ,
47
47
"release" : " bumpp && npm publish" ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export const createRegExp: {
49
49
} = ( ...inputs : any [ ] ) => {
50
50
const flags
51
51
= inputs . length > 1
52
- && ( Array . isArray ( inputs [ inputs . length - 1 ] ) || inputs [ inputs . length - 1 ] instanceof Set )
52
+ && ( Array . isArray ( inputs [ inputs . length - 1 ] ) || inputs [ inputs . length - 1 ] instanceof Set )
53
53
? inputs . pop ( )
54
54
: undefined
55
55
return new RegExp ( exactly ( ...inputs ) . toString ( ) , [ ...( flags || '' ) ] . join ( '' ) ) as any
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export const createRegExp: {
38
38
} = ( ...inputs : any [ ] ) => {
39
39
const flags
40
40
= inputs . length > 1
41
- && ( Array . isArray ( inputs [ inputs . length - 1 ] ) || inputs [ inputs . length - 1 ] instanceof Set )
41
+ && ( Array . isArray ( inputs [ inputs . length - 1 ] ) || inputs [ inputs . length - 1 ] instanceof Set )
42
42
? inputs . pop ( )
43
43
: undefined
44
44
return new RegExp ( exactly ( ...inputs ) . toString ( ) , [ ...( flags || '' ) ] . join ( '' ) ) as any
Original file line number Diff line number Diff line change 1
- import { expectTypeOf } from 'expect-type'
2
- import { describe , it } from 'vitest'
3
-
4
- // eslint-disable-next-line import/no-duplicates
5
1
import type * as flags from '../src/core/flags'
6
2
7
- // eslint-disable-next-line import/no-duplicates
8
3
import type { Flag } from '../src/core/flags'
9
4
5
+ import { expectTypeOf } from 'expect-type'
6
+
7
+ import { describe , it } from 'vitest'
8
+
10
9
type ValueOf < T > = T [ keyof T ]
11
10
12
11
describe ( 'flags' , ( ) => {
You can’t perform that action at this time.
0 commit comments