Skip to content

Commit

Permalink
chore: use more explicit lint disable (vitejs#3021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored and TobiasMelen committed May 3, 2021
1 parent ad48330 commit f352388
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export const NULL_BYTE_PLACEHOLDER = `__x00__`

export const CLIENT_PUBLIC_PATH = `/@vite/client`
export const ENV_PUBLIC_PATH = `/@vite/env`
// eslint-disable-next-line
// eslint-disable-next-line node/no-missing-require
export const CLIENT_ENTRY = require.resolve('vite/dist/client/client.js')
// eslint-disable-next-line
// eslint-disable-next-line node/no-missing-require
export const ENV_ENTRY = require.resolve('vite/dist/client/env.js')
export const CLIENT_DIR = path.dirname(CLIENT_ENTRY)

Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/terser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function terserPlugin(options: Terser.MinifyOptions): Plugin {
// when vite is linked, the worker thread won't share the same resolve
// root with vite itself, so we have to pass in the basedir and resolve
// terser first.
// eslint-disable-next-line
// eslint-disable-next-line node/no-restricted-require
const terserPath = require.resolve('terser', {
paths: [basedir]
})
Expand Down

0 comments on commit f352388

Please sign in to comment.