Skip to content

Commit d11f4f2

Browse files
committed
chore: fix lint
1 parent 6bb93e2 commit d11f4f2

File tree

5 files changed

+4
-10
lines changed

5 files changed

+4
-10
lines changed

playground/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { existsSync } from 'node:fs'
22
import { defineNuxtConfig } from 'nuxt/config'
33
import { resolve } from 'pathe'
44
import { consola } from 'consola'
5+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
56
import typography from '@tailwindcss/typography'
67

78
import type { ModuleHooks, ModuleOptions } from '../src/types'

src/types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ type InlineTWConfig = _Omit<TWConfig, 'content' | 'plugins' | 'safelist'> & {
1111
safelist?: Exclude<NonNullable<TWConfig['safelist']>[number], Record<string, any>>[]
1212
}
1313

14-
type ExtendTWConfig = {
15-
content?:
16-
| TWConfig['content']
17-
| ((contentDefaults: Array<string>) => TWConfig['content'])
18-
}
19-
2014
type BoolObj<T extends Record<string, any>> = boolean | Partial<T>
2115

2216
export type ViewerConfig = {

test/configs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('tailwindcss module configs', async () => {
6161
// Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
6262
// expect(output).toContain('Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.')
6363

64-
expect(output).toContain('[warn] [nuxt:tailwindcss] Failed to load config \`./malformed-tailwind.config.js\` due to the error below. Skipping..')
64+
expect(output).toContain('[warn] [nuxt:tailwindcss] Failed to load config `./malformed-tailwind.config.js` due to the error below. Skipping..')
6565
})
6666

6767
test('ts config file is loaded and merged', () => {
@@ -88,7 +88,7 @@ describe('tailwindcss module configs', async () => {
8888

8989
expect(contentFiles[0]).toBe('ts-content/**/*.md')
9090
expect(contentFiles[1]).toBe('./custom-theme/**/*.vue')
91-
expect(contentFiles.filter(c => /{[AE],[ae]}/.test(c)).length).toBe(0)
91+
expect(contentFiles.filter(c => /\{[AE],[ae]\}/.test(c)).length).toBe(0)
9292
expect([...contentFiles].pop()).toBe('my-custom-content')
9393
})
9494

test/fixtures/basic/override-tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
content: contentDefaults => [
33
contentDefaults[0],
44
'./custom-theme/**/*.vue',
5-
...contentDefaults.filter(c => !/{[AE],[ae]}/.test(c)),
5+
...contentDefaults.filter(c => !/\{[AE],[ae]\}/.test(c)),
66
],
77
theme: {
88
extend: {

test/sink.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ describe.skipIf(!existsSync(fixturePath))('nuxt.com', async () => {
1313
beforeAll(() => {
1414
const generateCommand = exec(`cd ${fixturePath} && pnpm generate`)
1515

16-
// eslint-disable-next-line no-constant-condition
1716
while (true) {
1817
if (
1918
existsSync(`${fixturePath}.output/public/index.html`)

0 commit comments

Comments
 (0)