chore: add monorepo tools (#9196)

This commit is contained in:
liuyi
2024-12-24 15:29:48 +08:00
committed by GitHub
parent e3a8b63e38
commit 2443935830
116 changed files with 9390 additions and 1466 deletions

View File

@@ -5,13 +5,41 @@
"correctness": "error",
"perf": "error"
},
"ignorePatterns": ["tools/cli/src/webpack/error-handler.js"],
"ignorePatterns": [
"**/node_modules",
".yarn",
".github",
".vscode",
".yarnrc.yml",
".coverage",
".nx/**",
"target",
"test-results",
"**/dist",
"**/lib",
"**/storybook-static",
"**/web-static",
"**/public",
"**/e2e-dist-*",
"**/static",
"**/*.gen.ts",
"**/*.gql",
"**/*.d.ts",
"tools/cli/src/webpack/error-handler.js",
"packages/backend/native/index.d.ts",
"packages/frontend/native/index.d.ts",
"packages/frontend/native/index.js",
"packages/frontend/graphql/src/graphql/index.ts",
"packages/frontend/graphql/src/schema.ts",
"packages/frontend/apps/android/App/app/build/**",
"blocksuite/tests-legacy/snapshots",
"**/.storybook"
],
"rules": {
"import/named": "allow",
"no-await-in-loop": "allow",
"promise/no-callback-in-promise": "allow",
"typescript/ban-types": "allow",
"array-callback-return": "error",
"constructor-super": "error",
"eqeqeq": ["error", "smart"],
@@ -172,7 +200,8 @@
"files": [
"*.{spec,test,e2e,stories}.{ts,tsx}",
"tests/**/*.ts",
"packages/backend/server/tests/**/*.ts"
"packages/backend/server/tests/**/*.ts",
"tools/**.*"
],
"rules": {
"typescript/no-non-null-assertion": "off",