Skip to content

Commit 85dbac3

Browse files
NicolappsConvex, Inc.
authored andcommitted
Add a project for lint tools (#43123)
This moves eslint and dprint/prettier dependencies to a Rush package. It makes dependency management easier, and will also allow us to allow linting to depend on monorepo packages in the future. I also updated linter dependencies across the monorepo for consistency. GitOrigin-RevId: b41f6da1d714364b513da671a35c84ebe587840b
1 parent 453683c commit 85dbac3

File tree

27 files changed

+4620
-13990
lines changed

27 files changed

+4620
-13990
lines changed

.github/workflows/prettier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Get dprint version
3030
run: |
31-
echo DPRINT_VERSION=$(node -p "require('./scripts/package.json').devDependencies['dprint']") >> $GITHUB_ENV
31+
echo DPRINT_VERSION=$(node -p "require('./npm-packages/lint/package.json').devDependencies['dprint']") >> $GITHUB_ENV
3232
3333
- uses: dprint/check@v2.3
3434
with:

npm-packages/@convex-dev/design-system/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"eslint-plugin-import": "^2.30.0",
5858
"eslint-plugin-jsx-a11y": "^6.6.0",
5959
"eslint-plugin-prettier": "^5.0.0",
60-
"eslint-plugin-react": "^7.37.2",
60+
"eslint-plugin-react": "^7.37.5",
6161
"eslint-plugin-react-hooks": "^4.6.2",
6262
"jest": "^29.6.0",
6363
"jest-environment-jsdom": "^29.5.0",

npm-packages/common/config/rush/common-versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@
109109
"@types/react": ["^18", "^18.3.17", "^18.2.65"],
110110
"@types/react-dom": ["^18", "^18.3.1", "^18.2.21"],
111111
"typescript-eslint": ["^8.45.0"],
112-
"@typescript-eslint/eslint-plugin": ["^8.45.0"],
112+
"@typescript-eslint/eslint-plugin": ["^6.7.4"], // TODO(nicolas) Update the dashboard ESLint config
113+
"@typescript-eslint/parser": ["^6.7.4"], // TODO(nicolas) Update the dashboard ESLint config
113114
//"eslint": ["^8"],
114115
"@eslint/eslintrc": ["^3"],
115116
"eslint-config-next": ["~13.4.16", "15.2.3"],

npm-packages/common/config/rush/pnpm-lock.yaml

Lines changed: 355 additions & 235 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
22
{
33
"preferredVersionsHash": "9e868af9e9249b1e68ae3b3da499e674c39e4cdc",
4-
"packageJsonInjectedDependenciesHash": "1e395ecc0784b479582f69d595d282c4140c95cd"
4+
"packageJsonInjectedDependenciesHash": "510a1c559e55b153de42644845c8e87139272475"
55
}

npm-packages/convex-ai-chat/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
6565
"convex": "workspace:*",
6666
"@types/react": "^18.0.0",
6767
"@types/react-dom": "^18.0.0",
68-
"@typescript-eslint/eslint-plugin": "^6.7.4",
69-
"@typescript-eslint/parser": "^6.7.4",
68+
"@typescript-eslint/eslint-plugin": "^8.0.0",
69+
"@typescript-eslint/parser": "^8.0.0",
7070
"eslint": "^8.29.0",
7171
"eslint-config-prettier": "^10.0.0",
72-
"eslint-plugin-react": "^7.37.2",
73-
"eslint-plugin-react-hooks": "^5.1.0-beta-26f2496093-20240514",
72+
"eslint-plugin-react": "^7.37.5",
73+
"eslint-plugin-react-hooks": "^5.2.0",
7474
"react": "^18.0.0",
7575
"react-dom": "^18.0.0",
7676
"tailwindcss": "^3.2.4",

npm-packages/convex/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@
300300
"esbuild-plugin-external-global": "~1.0.1",
301301
"eslint": "^9.37.0",
302302
"eslint-config-prettier": "^10.0.0",
303-
"eslint-plugin-react": "^7.37.2",
304-
"eslint-plugin-react-hooks": "^5.1.0-beta-26f2496093-20240514",
303+
"eslint-plugin-react": "^7.37.5",
304+
"eslint-plugin-react-hooks": "^5.2.0",
305305
"eslint-plugin-require-extensions": "~0.1.3",
306306
"fetch-retry": "~6.0.0",
307307
"find-up": "^7.0.0",

npm-packages/dashboard-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"eslint-plugin-better-tailwindcss": "^3.4.4",
103103
"eslint-plugin-jsx-a11y": "^6.6.0",
104104
"eslint-plugin-prettier": "^5.0.0",
105-
"eslint-plugin-react": "^7.37.2",
105+
"eslint-plugin-react": "^7.37.5",
106106
"eslint-plugin-react-hooks": "^4.6.2",
107107
"eslint-plugin-storybook": "^9.0.17",
108108
"jest": "^29.6.0",

npm-packages/dashboard-self-hosted/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"eslint-plugin-import": "^2.30.0",
4343
"eslint-plugin-jsx-a11y": "^6.6.0",
4444
"eslint-plugin-prettier": "^5.0.0",
45-
"eslint-plugin-react": "^7.37.2",
45+
"eslint-plugin-react": "^7.37.5",
4646
"eslint-plugin-react-hooks": "^4.6.2",
4747
"postcss": "^8.4.19",
4848
"prettier": "3.6.2",

npm-packages/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"eslint-plugin-import": "^2.30.0",
100100
"eslint-plugin-jsx-a11y": "^6.6.0",
101101
"eslint-plugin-prettier": "^5.0.0",
102-
"eslint-plugin-react": "^7.37.2",
102+
"eslint-plugin-react": "^7.37.5",
103103
"eslint-plugin-react-hooks": "^4.6.2",
104104
"jest": "^29.6.0",
105105
"jest-environment-jsdom": "^29.5.0",

0 commit comments

Comments
 (0)