Skip to content

Commit c15e20f

Browse files
authored
Install eslint-local-rules as postinstall (#7993)
For local dev and CI we want to have the eslint-local-rules running, so let's make sure both have their dependencies installed. We don't use a monorepo setup here, which is why they're currently setup as a two completely independent yarn workspaces.
1 parent 730d045 commit c15e20f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/site_lint.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ jobs:
3232

3333
- name: Install deps
3434
run: yarn install --frozen-lockfile
35-
- name: Install deps (eslint-local-rules)
36-
run: yarn install --frozen-lockfile
37-
working-directory: eslint-local-rules
3835

3936
- name: Lint codebase
4037
run: yarn ci-check

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids rss deadlinks",
1919
"tsc": "tsc --noEmit",
2020
"start": "next start",
21-
"postinstall": "is-ci || husky install .husky",
21+
"postinstall": "yarn --cwd eslint-local-rules install && is-ci || husky install .husky",
2222
"check-all": "npm-run-all prettier lint:fix tsc rss",
2323
"rss": "node scripts/generateRss.js",
2424
"deadlinks": "node scripts/deadLinkChecker.js",

0 commit comments

Comments
 (0)