Skip to content

Commit 620cb96

Browse files
committed
chore: lint project
1 parent a386d00 commit 620cb96

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

docs/nuxt.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// https://nuxt.com/docs/api/configuration/nuxt-config
32
export default defineNuxtConfig({
43
devtools: { enabled: true },

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"build": "unbuild",
4242
"dev": "vitest dev",
4343
"docs:generate": "nuxi generate docs",
44-
"lint": "eslint --fix .",
44+
"lint": "eslint .",
4545
"prepare": "npx simple-git-hooks && pnpm build",
4646
"prepublishOnly": "pnpm lint && pnpm test",
4747
"release": "bumpp && npm publish",

src/further-magic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const createRegExp: {
4949
} = (...inputs: any[]) => {
5050
const flags
5151
= 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)
5353
? inputs.pop()
5454
: undefined
5555
return new RegExp(exactly(...inputs).toString(), [...(flags || '')].join('')) as any

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const createRegExp: {
3838
} = (...inputs: any[]) => {
3939
const flags
4040
= 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)
4242
? inputs.pop()
4343
: undefined
4444
return new RegExp(exactly(...inputs).toString(), [...(flags || '')].join('')) as any

test/flags.test.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { expectTypeOf } from 'expect-type'
2-
import { describe, it } from 'vitest'
3-
4-
// eslint-disable-next-line import/no-duplicates
51
import type * as flags from '../src/core/flags'
62

7-
// eslint-disable-next-line import/no-duplicates
83
import type { Flag } from '../src/core/flags'
94

5+
import { expectTypeOf } from 'expect-type'
6+
7+
import { describe, it } from 'vitest'
8+
109
type ValueOf<T> = T[keyof T]
1110

1211
describe('flags', () => {

0 commit comments

Comments
 (0)