mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 07:06:28 +08:00
chore: update lint script to include the .mjs (#1267)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
// TODO: use https://github.com/quicktype/quicktype#installation instead
|
||||
import { compileFromFile } from 'json-schema-to-typescript';
|
||||
import path from 'path';
|
||||
import { cd } from 'zx/core';
|
||||
|
||||
const projectRoot = path.join(__dirname, '..', '..');
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
+5
-6
@@ -9,19 +9,18 @@
|
||||
"dev:ac": "cross-env NODE_API_SERVER=ac pnpm --filter @affine/app dev",
|
||||
"dev:local": "cross-env NODE_API_SERVER=local pnpm --filter @affine/app dev",
|
||||
"build": "pnpm --filter @affine/app build",
|
||||
"build:client": " pnpm --filter=@affine/client-app build:app",
|
||||
"build:storybook": " pnpm -r build-storybook",
|
||||
"build:client": "pnpm --filter @affine/client-app build:app",
|
||||
"build:storybook": "pnpm -r build-storybook",
|
||||
"export": "pnpm --filter @affine/app export",
|
||||
"export:rem": "pnpm --filter @affine/rem export",
|
||||
"start": "pnpm --filter @affine/app start",
|
||||
"lint": "eslint . --ext .js,.ts,.mts,.tsx",
|
||||
"lint:fix": "eslint . --ext .js,.ts,.mts,.tsx --fix",
|
||||
"lint": "eslint . --ext .js,mjs,.ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"test": "playwright test",
|
||||
"test:coverage": "cross-env COVERAGE=true pnpm test -- --forbid-only",
|
||||
"test:unit": "vitest --run",
|
||||
"test:unit:coverage": "vitest run --coverage",
|
||||
"postinstall": "husky install",
|
||||
"notify": "node --experimental-modules scripts/notify.mjs",
|
||||
"notify": "node scripts/notify.mjs",
|
||||
"update:core": "pnpm up @blocksuite/*@nightly !@blocksuite/icons -r"
|
||||
},
|
||||
"lint-staged": {
|
||||
|
||||
Reference in New Issue
Block a user