chore: update lint script to include the .mjs (#1267)

This commit is contained in:
hehe
2023-03-03 02:01:09 +08:00
committed by GitHub
parent eeb636e81c
commit a61bb4f8bc
4 changed files with 14 additions and 12 deletions

View File

@@ -1,10 +1,12 @@
// @ts-check
import path from 'node:path';
import debugLocal from 'next-debug-local';
import preset from './preset.config.mjs';
import { createRequire } from 'node:module';
import { getCommitHash, getGitVersion } from './scripts/gitInfo.mjs';
import path from 'node:path';
import { PerfseePlugin } from '@perfsee/webpack';
import debugLocal from 'next-debug-local';
import preset from './preset.config.mjs';
import { getCommitHash, getGitVersion } from './scripts/gitInfo.mjs';
const require = createRequire(import.meta.url);

View File

@@ -1,6 +1,6 @@
import 'dotenv/config';
export default {
const config = {
enableIndexedDBProvider: Boolean(process.env.ENABLE_IDB_PROVIDER ?? '1'),
enableBroadCastChannelProvider: Boolean(
process.env.ENABLE_BC_PROVIDER ?? '1'
@@ -8,3 +8,4 @@ export default {
prefetchWorkspace: Boolean(process.env.PREFETCH_WORKSPACE ?? '1'),
exposeInternal: Boolean(process.env.EXPOSE_INTERNAL ?? '1'),
};
export default config;