Skip to content

Commit

Permalink
build: update deps for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed May 24, 2024
1 parent a4c6884 commit 3ad760d
Show file tree
Hide file tree
Showing 11 changed files with 1,905 additions and 853 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { color } from '../entry'

jest.mock('some-module', () => ({} as Partial<Record<string, unknown>>), { virtual: true })
jest.mock('some-module', () => ({}) as Partial<Record<string, unknown>>, { virtual: true })

jest.mock('../entry', () => {
return { color: 'blue' }
Expand Down
8 changes: 5 additions & 3 deletions examples/react-app/config/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ function getModules() {
// TypeScript project and set up the config
// based on tsconfig.json
if (hasTsConfig) {
const ts = require(resolve.sync('typescript', {
basedir: paths.appNodeModules,
}))
const ts = require(
resolve.sync('typescript', {
basedir: paths.appNodeModules,
})
)
config = ts.readConfigFile(paths.appTsConfig, ts.sys.readFile).config
// Otherwise we'll check if there is jsconfig.json
// for non TS projects.
Expand Down
Loading

0 comments on commit 3ad760d

Please sign in to comment.