ci: fix lint oom (#6295)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const { resolve } = require('node:path');
|
const { join } = require('node:path');
|
||||||
|
|
||||||
const createPattern = packageName => [
|
const createPattern = packageName => [
|
||||||
{
|
{
|
||||||
@@ -88,7 +88,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
ecmaVersion: 'latest',
|
ecmaVersion: 'latest',
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
project: resolve(__dirname, './tsconfig.eslint.json'),
|
project: join(__dirname, 'tsconfig.eslint.json'),
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
'react',
|
'react',
|
||||||
@@ -235,9 +235,6 @@ const config = {
|
|||||||
},
|
},
|
||||||
...allPackages.map(pkg => ({
|
...allPackages.map(pkg => ({
|
||||||
files: [`${pkg}/src/**/*.ts`, `${pkg}/src/**/*.tsx`],
|
files: [`${pkg}/src/**/*.ts`, `${pkg}/src/**/*.tsx`],
|
||||||
parserOptions: {
|
|
||||||
project: resolve(__dirname, './tsconfig.eslint.json'),
|
|
||||||
},
|
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/no-restricted-imports': [
|
'@typescript-eslint/no-restricted-imports': [
|
||||||
'error',
|
'error',
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"start:web-static": "yarn workspace @affine/web static-server",
|
"start:web-static": "yarn workspace @affine/web static-server",
|
||||||
"start:storybook": "yarn exec serve tests/storybook/storybook-static -l 6006",
|
"start:storybook": "yarn exec serve tests/storybook/storybook-static -l 6006",
|
||||||
"serve:test-static": "yarn exec serve tests/fixtures --cors -p 8081",
|
"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:eslint:fix": "yarn lint:eslint --fix",
|
||||||
"lint:prettier": "prettier --ignore-unknown --cache --check .",
|
"lint:prettier": "prettier --ignore-unknown --cache --check .",
|
||||||
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
|
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
"*": "prettier --write --ignore-unknown --cache",
|
"*": "prettier --write --ignore-unknown --cache",
|
||||||
"*.{ts,tsx,mjs,js,jsx}": [
|
"*.{ts,tsx,mjs,js,jsx}": [
|
||||||
"prettier --ignore-unknown --write",
|
"prettier --ignore-unknown --write",
|
||||||
"eslint --cache --fix"
|
"cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --cache --fix"
|
||||||
],
|
],
|
||||||
"*.toml": [
|
"*.toml": [
|
||||||
"taplo format"
|
"taplo format"
|
||||||
@@ -76,6 +76,7 @@
|
|||||||
"@vitejs/plugin-react-swc": "^3.6.0",
|
"@vitejs/plugin-react-swc": "^3.6.0",
|
||||||
"@vitest/coverage-istanbul": "1.4.0",
|
"@vitest/coverage-istanbul": "1.4.0",
|
||||||
"@vitest/ui": "1.4.0",
|
"@vitest/ui": "1.4.0",
|
||||||
|
"cross-env": "^7.0.3",
|
||||||
"electron": "^29.0.1",
|
"electron": "^29.0.1",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ export enum ServerFeature {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum SubscriptionPlan {
|
export enum SubscriptionPlan {
|
||||||
|
AI = 'AI',
|
||||||
Enterprise = 'Enterprise',
|
Enterprise = 'Enterprise',
|
||||||
Free = 'Free',
|
Free = 'Free',
|
||||||
Pro = 'Pro',
|
Pro = 'Pro',
|
||||||
|
|||||||
@@ -582,6 +582,7 @@ __metadata:
|
|||||||
"@vitejs/plugin-react-swc": "npm:^3.6.0"
|
"@vitejs/plugin-react-swc": "npm:^3.6.0"
|
||||||
"@vitest/coverage-istanbul": "npm:1.4.0"
|
"@vitest/coverage-istanbul": "npm:1.4.0"
|
||||||
"@vitest/ui": "npm:1.4.0"
|
"@vitest/ui": "npm:1.4.0"
|
||||||
|
cross-env: "npm:^7.0.3"
|
||||||
electron: "npm:^29.0.1"
|
electron: "npm:^29.0.1"
|
||||||
eslint: "npm:^8.56.0"
|
eslint: "npm:^8.56.0"
|
||||||
eslint-config-prettier: "npm:^9.1.0"
|
eslint-config-prettier: "npm:^9.1.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user