Skip to content

Commit 30d5961

Browse files
committed
chore: fix lint errors
1 parent df8af12 commit 30d5961

File tree

16 files changed

+40
-33
lines changed

16 files changed

+40
-33
lines changed

.eslintrc.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = defineConfig({
5050
'n/no-extraneous-import': [
5151
'error',
5252
{
53-
allowModules: ['vite', 'less', 'sass', 'vitest'],
53+
allowModules: ['vite', 'less', 'sass', 'vitest', '@playwright/test'],
5454
},
5555
],
5656
'n/no-extraneous-require': [
@@ -127,7 +127,7 @@ module.exports = defineConfig({
127127
},
128128
},
129129
{
130-
files: ['playground/**'],
130+
files: ['playground/**', 'packages/plugin-react-swc/playground/**'],
131131
rules: {
132132
'n/no-extraneous-import': 'off',
133133
'n/no-extraneous-require': 'off',
@@ -150,7 +150,7 @@ module.exports = defineConfig({
150150
},
151151
},
152152
{
153-
files: ['playground/**'],
153+
files: ['playground/**', 'packages/plugin-react-swc/playground/**'],
154154
excludedFiles: '**/__tests__/**',
155155
rules: {
156156
'no-undef': 'off',

packages/plugin-react-swc/playground/decorators/__tests__/decorators.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from '@playwright/test'
2-
import { setupDevServer, setupBuildAndPreview } from '../../utils.ts'
2+
import { setupBuildAndPreview, setupDevServer } from '../../utils.ts'
33

44
test('Decorators build', async ({ page }) => {
55
const { testUrl, server } = await setupBuildAndPreview('decorators')

packages/plugin-react-swc/playground/decorators/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ComponentClass, Component } from 'react'
1+
import type { ComponentClass } from 'react'
2+
import { Component } from 'react'
23

34
function decorated(target: ComponentClass) {
45
const original = target.prototype.render

packages/plugin-react-swc/playground/emotion-plugin/__tests__/emotion-plugin.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { expect, test } from '@playwright/test'
22
import {
3-
setupDevServer,
3+
expectColor,
44
setupBuildAndPreview,
5+
setupDevServer,
56
setupWaitForLogs,
6-
expectColor,
77
} from '../../utils.ts'
88

99
test('Emotion plugin build', async ({ page }) => {

packages/plugin-react-swc/playground/emotion/__tests__/emotion.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { expect, test } from '@playwright/test'
22
import {
3-
setupDevServer,
3+
expectColor,
44
setupBuildAndPreview,
5+
setupDevServer,
56
setupWaitForLogs,
6-
expectColor,
77
} from '../../utils.ts'
88

99
test('Emotion build', async ({ page }) => {

packages/plugin-react-swc/playground/hmr/__tests__/hmr.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, test } from '@playwright/test'
22
import {
3-
setupDevServer,
43
setupBuildAndPreview,
4+
setupDevServer,
55
setupWaitForLogs,
66
} from '../../utils.ts'
77

packages/plugin-react-swc/playground/mdx/__tests__/mdx.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, test } from '@playwright/test'
22
import {
3-
setupDevServer,
43
setupBuildAndPreview,
4+
setupDevServer,
55
setupWaitForLogs,
66
} from '../../utils.ts'
77

packages/plugin-react-swc/playground/react-18/__tests__/react-18.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, test } from '@playwright/test'
22
import {
3-
setupDevServer,
43
setupBuildAndPreview,
4+
setupDevServer,
55
setupWaitForLogs,
66
} from '../../utils.ts'
77

packages/plugin-react-swc/playground/styled-components/__tests__/styled-components.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { expect, test } from '@playwright/test'
22
import {
3-
setupDevServer,
3+
expectColor,
44
setupBuildAndPreview,
5+
setupDevServer,
56
setupWaitForLogs,
6-
expectColor,
77
} from '../../utils.ts'
88

99
test('styled-components build', async ({ page }) => {

packages/plugin-react-swc/playground/ts-lib/__tests__/ts-lib.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from '@playwright/test'
2-
import { setupDevServer, setupBuildAndPreview } from '../../utils.ts'
2+
import { setupBuildAndPreview, setupDevServer } from '../../utils.ts'
33

44
test('TS lib build', async ({ page }) => {
55
const { testUrl, server } = await setupBuildAndPreview('ts-lib')

0 commit comments

Comments
 (0)