ci: fix lint oom (#6295)

This commit is contained in:
Brooooooklyn 2024-03-25 07:11:49 +00:00
parent a8cd1579f5
commit 6467e10690
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99
4 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
const { resolve } = require('node:path');
const { join } = require('node:path');
const createPattern = packageName => [
{
@ -88,7 +88,7 @@ const config = {
},
ecmaVersion: 'latest',
sourceType: 'module',
project: resolve(__dirname, './tsconfig.eslint.json'),
project: join(__dirname, 'tsconfig.eslint.json'),
},
plugins: [
'react',
@ -235,9 +235,6 @@ const config = {
},
...allPackages.map(pkg => ({
files: [`${pkg}/src/**/*.ts`, `${pkg}/src/**/*.tsx`],
parserOptions: {
project: resolve(__dirname, './tsconfig.eslint.json'),
},
rules: {
'@typescript-eslint/no-restricted-imports': [
'error',

View File

@ -26,7 +26,7 @@
"start:web-static": "yarn workspace @affine/web static-server",
"start:storybook": "yarn exec serve tests/storybook/storybook-static -l 6006",
"serve:test-static": "yarn exec serve tests/fixtures --cors -p 8081",
"lint:eslint": "eslint . --ext .js,mjs,.ts,.tsx --cache",
"lint:eslint": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint . --ext .js,mjs,.ts,.tsx --cache",
"lint:eslint:fix": "yarn lint:eslint --fix",
"lint:prettier": "prettier --ignore-unknown --cache --check .",
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
@ -44,7 +44,7 @@
"*": "prettier --write --ignore-unknown --cache",
"*.{ts,tsx,mjs,js,jsx}": [
"prettier --ignore-unknown --write",
"eslint --cache --fix"
"cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --cache --fix"
],
"*.toml": [
"taplo format"
@ -76,6 +76,7 @@
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-istanbul": "1.4.0",
"@vitest/ui": "1.4.0",
"cross-env": "^7.0.3",
"electron": "^29.0.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",

View File

@ -87,6 +87,7 @@ export enum ServerFeature {
}
export enum SubscriptionPlan {
AI = 'AI',
Enterprise = 'Enterprise',
Free = 'Free',
Pro = 'Pro',

View File

@ -582,6 +582,7 @@ __metadata:
"@vitejs/plugin-react-swc": "npm:^3.6.0"
"@vitest/coverage-istanbul": "npm:1.4.0"
"@vitest/ui": "npm:1.4.0"
cross-env: "npm:^7.0.3"
electron: "npm:^29.0.1"
eslint: "npm:^8.56.0"
eslint-config-prettier: "npm:^9.1.0"