Skip to content

Commit cd21abf

Browse files
authoredMay 28, 2022
chore: enable ESLint for __tests__ dir (#8370)
1 parent 8f18fe7 commit cd21abf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"preinstall": "npx only-allow pnpm",
1717
"format": "prettier --write .",
18-
"lint": "eslint packages/*/{src,types}/** playground/**/__tests__/**/*.ts scripts/**",
18+
"lint": "eslint packages/*/{src,types,__tests__}/** playground/**/__tests__/**/*.ts scripts/**",
1919
"typecheck": "tsc -p scripts --noEmit && tsc -p playground --noEmit",
2020
"test": "run-s test-unit test-serve test-build",
2121
"test-serve": "vitest run -c vitest.config.e2e.ts",

‎packages/create-vite/__tests__/cli.spec.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
/* eslint-disable node/no-extraneous-import */
1+
import { join } from 'path'
22
import type { ExecaSyncReturnValue, SyncOptions } from 'execa'
33
import { commandSync } from 'execa'
44
import { mkdirpSync, readdirSync, remove, writeFileSync } from 'fs-extra'
5-
import { join } from 'path'
6-
import { test, expect, beforeAll, afterEach } from 'vitest'
5+
import { afterEach, beforeAll, expect, test } from 'vitest'
76

87
const CLI_PATH = join(__dirname, '..')
98

0 commit comments

Comments
 (0)
Please sign in to comment.