-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feat: eslint #8185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: eslint #8185
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| pnpm lint-staged |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,34 +1,59 @@ | ||
| # Enforce pnpm workspace behavior and allow Turbo's lifecycle hooks if scripts are disabled | ||
| # This repo uses pnpm with workspaces. | ||
| # ------------------------------ | ||
| # Core Workspace Behavior | ||
| # ------------------------------ | ||
|
|
||
| # Prefer linking local workspace packages when available | ||
| prefer-workspace-packages=true | ||
| link-workspace-packages=true | ||
| shared-workspace-lockfile=true | ||
| # Always prefer using local workspace packages when available | ||
| prefer-workspace-packages = true | ||
|
|
||
| # Make peer installs smoother across the monorepo | ||
| auto-install-peers=true | ||
| strict-peer-dependencies=false | ||
| # Symlink workspace packages instead of duplicating them | ||
| link-workspace-packages = true | ||
|
|
||
| # If scripts are disabled (e.g., CI with --ignore-scripts), allowlisted packages can still run their hooks | ||
| # Turbo occasionally performs postinstall tasks for optimal performance | ||
| # moved to pnpm-workspace.yaml: onlyBuiltDependencies (e.g., allow turbo) | ||
| # Use a single lockfile across the whole monorepo | ||
| shared-workspace-lockfile = true | ||
|
|
||
| public-hoist-pattern[]=*eslint* | ||
| public-hoist-pattern[]=prettier | ||
| public-hoist-pattern[]=typescript | ||
| # Ensure packages added from workspace save using workspace: protocol | ||
| save-workspace-protocol = true | ||
|
|
||
| # Reproducible installs across CI and dev | ||
| prefer-frozen-lockfile=true | ||
|
|
||
| # Prefer resolving to highest versions in monorepo to reduce duplication | ||
| resolution-mode=highest | ||
| # ------------------------------ | ||
| # Dependency Resolution | ||
| # ------------------------------ | ||
|
|
||
| # Speed up native module builds by caching side effects | ||
| side-effects-cache=true | ||
| # Choose the highest compatible version across the workspace | ||
| # → reduces fragmentation & node_modules bloat | ||
| resolution-mode = highest | ||
|
|
||
| # Speed up local dev by reusing local store when possible | ||
| prefer-offline=true | ||
| # Automatically install peer dependencies instead of forcing every package to declare them | ||
| auto-install-peers = true | ||
|
|
||
| # Ensure workspace protocol is used when adding internal deps | ||
| save-workspace-protocol=true | ||
| # Don't break the install if peers are missing | ||
| strict-peer-dependencies = false | ||
|
|
||
|
|
||
| # ------------------------------ | ||
| # Performance Optimizations | ||
| # ------------------------------ | ||
|
|
||
| # Use cached artifacts for native modules (sharp, esbuild, etc.) | ||
| side-effects-cache = true | ||
|
|
||
| # Prefer local cached packages rather than hitting network | ||
| prefer-offline = true | ||
|
|
||
| # In CI, refuse to modify lockfile (prevents drift) | ||
| prefer-frozen-lockfile = true | ||
|
|
||
| # Use isolated linker (best compatibility with Node ecosystem tools) | ||
| node-linker = isolated | ||
|
|
||
|
|
||
| # ------------------------------ | ||
| # Hoisting Strategy | ||
| # ------------------------------ | ||
|
|
||
| # Hoist commonly used tools to the root to prevent duplicates and speed up resolution | ||
| public-hoist-pattern[] = typescript | ||
| public-hoist-pattern[] = eslint | ||
| public-hoist-pattern[] = *@plane/* | ||
| public-hoist-pattern[] = vite | ||
| public-hoist-pattern[] = turbo | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| .next/ | ||
| .react-router/ | ||
| .turbo/ | ||
| .vite/ | ||
| build/ | ||
| dist/ | ||
| node_modules/ | ||
| out/ | ||
| pnpm-lock.yaml | ||
| storybook-static/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,15 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/prettierrc", | ||
| "overrides": [ | ||
| { | ||
| "files": ["packages/codemods/**/*"], | ||
| "options": { | ||
| "printWidth": 80 | ||
| } | ||
| } | ||
| ], | ||
| "plugins": ["@prettier/plugin-oxc"], | ||
| "printWidth": 120, | ||
| "tabWidth": 2, | ||
| "trailingComma": "es5", | ||
| "plugins": ["@prettier/plugin-oxc"] | ||
| "trailingComma": "es5" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| eslint.config.mjs @lifeiscontent |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,10 @@ | ||
| .next | ||
| .react-router | ||
| .vite | ||
| .vercel | ||
| .tubro | ||
| out/ | ||
| dist/ | ||
| .next/ | ||
| .react-router/ | ||
| .turbo/ | ||
| .vite/ | ||
| build/ | ||
| dist/ | ||
| node_modules/ | ||
| out/ | ||
| pnpm-lock.yaml | ||
| storybook-static/ |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1 @@ | ||
| // eslint-disable-next-line @typescript-eslint/no-require-imports | ||
| module.exports = require("@plane/tailwind-config/postcss.config.js"); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,21 @@ | ||
| { | ||
| "extends": "@plane/typescript-config/react-router.json", | ||
| "compilerOptions": { | ||
| "baseUrl": ".", | ||
| "noImplicitOverride": false, | ||
| "exactOptionalPropertyTypes": false, | ||
| "noUnusedParameters": false, | ||
| "noUnusedLocals": false, | ||
|
Comment on lines
+4
to
+7
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat apps/admin/tsconfig.jsonRepository: makeplane/plane Length of output: 728 🏁 Script executed: fd "react-router.json" --type fRepository: makeplane/plane Length of output: 103 🏁 Script executed: git diff HEAD~1 apps/admin/tsconfig.json 2>/dev/null || git show HEAD:apps/admin/tsconfig.json 2>/dev/null || echo "Git history unavailable"Repository: makeplane/plane Length of output: 728 🏁 Script executed: rg "noImplicitOverride|exactOptionalPropertyTypes|noUnusedParameters|noUnusedLocals" --type json --max-count=10 -B 2 -A 2Repository: makeplane/plane Length of output: 5262 🏁 Script executed: cat packages/typescript-config/react-router.jsonRepository: makeplane/plane Length of output: 483 🏁 Script executed: cat packages/typescript-config/base.json | head -50Repository: makeplane/plane Length of output: 909 🏁 Script executed: rg "noImplicitOverride|noUnusedLocals|noUnusedParameters|exactOptionalPropertyTypes" --type md --max-count=5Repository: makeplane/plane Length of output: 41 🏁 Script executed: git log --oneline --all -- apps/admin/tsconfig.json 2>/dev/null | head -5 || echo "Git history unavailable"Repository: makeplane/plane Length of output: 154 Strictness flags disabled without documented justification. The four compiler options ( Clarify:
🤖 Prompt for AI Agents |
||
| "rootDirs": [".", "./.react-router/types"], | ||
| "types": ["node", "vite/client"], | ||
| "types": ["vite/client"], | ||
| "paths": { | ||
| "@/app/*": ["app/*"], | ||
| "@/*": ["core/*"], | ||
| "@/plane-admin/*": ["ce/*"], | ||
| "@/styles/*": ["styles/*"] | ||
| }, | ||
| "strictNullChecks": true | ||
| "package.json": ["./package.json"], | ||
| "ce/*": ["./ce/*"], | ||
| "@/app/*": ["./app/*"], | ||
| "@/*": ["./core/*"], | ||
| "@/plane-admin/*": ["./ce/*"], | ||
| "@/ce/*": ["./ce/*"], | ||
| "@/styles/*": ["./styles/*"] | ||
| } | ||
| }, | ||
| "include": ["**/*", "**/.server/**/*", "**/.client/**/*", ".react-router/types/**/*"], | ||
| "exclude": ["node_modules"] | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,10 @@ | ||||||||||
| .next/ | ||||||||||
| .react-router/ | ||||||||||
| .turbo/ | ||||||||||
| .vite/ | ||||||||||
| build/ | ||||||||||
| dist/ | ||||||||||
| node_modules/ | ||||||||||
| out/ | ||||||||||
| pnpm-lock.yaml | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove Same issue as other package-level files in this PR—lockfiles should be ignored centrally from the repository root. node_modules/
out/
- pnpm-lock.yaml
storybook-static/📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| storybook-static/ | ||||||||||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,10 @@ | ||||||||||||||||
| .next | ||||||||||||||||
| .turbo | ||||||||||||||||
| out/ | ||||||||||||||||
| dist/ | ||||||||||||||||
| .next/ | ||||||||||||||||
| .react-router/ | ||||||||||||||||
| .turbo/ | ||||||||||||||||
| .vite/ | ||||||||||||||||
| build/ | ||||||||||||||||
| node_modules/ | ||||||||||||||||
| dist/ | ||||||||||||||||
| node_modules/ | ||||||||||||||||
| out/ | ||||||||||||||||
| pnpm-lock.yaml | ||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove This entry is ineffective in package-level ignore files when prettier runs from individual package directories. The root .vite/
build/
dist/
node_modules/
out/
- pnpm-lock.yaml
storybook-static/📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
| storybook-static/ | ||||||||||||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: makeplane/plane
Length of output: 2550
Confirm prettier should be added to public-hoist-pattern.
The hoisting patterns are mostly appropriate:
Suggested revision:
🤖 Prompt for AI Agents