-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: lint and typecheck top level #8880
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
Changes from all commits
5be3fa1
6ac4c2d
57bed67
642c869
04e4774
57f7ab2
a26356b
73bdac9
72fd63d
a4f3f90
b4b5af6
375001f
6cbd506
37a51ec
47326d0
a918669
08f7d27
c34477b
da1a40d
956d1c2
7648cb8
2d6252b
c631a86
ea6d4b0
9504db2
b65577e
9d6601c
7a86edf
b5599b8
6bbab91
578af91
960f421
1fb5ea7
e323ad0
ec884d6
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 |
---|---|---|
|
@@ -79,6 +79,7 @@ | |
"destructures", | ||
"discoverability", | ||
"dprint", | ||
"dummypkg", | ||
"errored", | ||
"erroring", | ||
"ESLint", | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,21 +40,19 @@ | |
"lint-markdown-fix": "yarn lint-markdown --fix", | ||
"lint-markdown": "markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore", | ||
"lint-stylelint": "npx nx lint website stylelint", | ||
"lint": "npx nx lint eslint-plugin --skip-nx-cache && npx nx run-many --target=lint --parallel --exclude eslint-plugin", | ||
"lint": "npx nx lint eslint-plugin --skip-nx-cache && npx nx run-many --target=lint --parallel --exclude eslint-plugin && eslint . --ignore-pattern=packages --cache", | ||
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. This still does the 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. Sure thing, I can look into that |
||
"postinstall": "npx nx run repo-tools:postinstall-script", | ||
"pre-commit": "yarn lint-staged", | ||
"release": "tsx tools/release/release.mts", | ||
"release": "tsx packages/repo-tools/src/release/release.mts", | ||
"start": "npx nx run website:start", | ||
"test": "npx nx run-many --target=test --parallel --exclude integration-tests --exclude website --exclude website-eslint", | ||
"test-integration": "npx nx run integration-tests:test", | ||
"typecheck": "npx nx run-many --target=typecheck --parallel" | ||
"typecheck": "npx nx run-many --target=typecheck --parallel && tsc" | ||
}, | ||
"engines": { | ||
"node": "^18.18.0 || >=20.0.0" | ||
}, | ||
"devDependencies": { | ||
"@actions/core": "^1.10.1", | ||
"@actions/github": "^6.0.0", | ||
"@babel/code-frame": "^7.24.2", | ||
"@babel/core": "^7.24.4", | ||
"@babel/eslint-parser": "^7.24.1", | ||
|
@@ -79,7 +77,6 @@ | |
"@types/node": "^20.12.5", | ||
"@types/semver": "^7.5.8", | ||
"@types/tmp": "^0.2.6", | ||
"@types/yargs": "^17.0.32", | ||
"@typescript-eslint/eslint-plugin-internal": "workspace:^", | ||
"console-fail-test": "^0.2.3", | ||
"cross-fetch": "^4.0.0", | ||
|
@@ -97,7 +94,6 @@ | |
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"eslint-plugin-unicorn": "^50.0.1", | ||
"execa": "7.2.0", | ||
"glob": "^10.3.12", | ||
"globals": "^15.0.0", | ||
"husky": "^9.0.0", | ||
|
@@ -108,25 +104,23 @@ | |
"make-dir": "^4.0.0", | ||
"markdownlint-cli": "^0.41.0", | ||
"ncp": "^2.0.0", | ||
"netlify": "^13.1.14", | ||
"nx": "19.4.0", | ||
"prettier": "3.3.2", | ||
"pretty-format": "^29.7.0", | ||
"rimraf": "^5.0.5", | ||
"tmp": "^0.2.1", | ||
"tsx": "*", | ||
"typescript": ">=4.7.4 <5.6.0", | ||
"typescript-eslint": "workspace:^", | ||
"yargs": "17.7.2" | ||
"typescript-eslint": "workspace:^" | ||
}, | ||
"resolutions": { | ||
"@jest/create-cache-key-function": "^29", | ||
"@jest/reporters": "^29", | ||
"@jest/test-result": "^29", | ||
"@microsoft/api-extractor@^7.38.0": "patch:@microsoft/api-extractor@npm%3A7.38.0#./.yarn/patches/@microsoft-api-extractor-npm-7.38.0-955f1e0725.patch", | ||
"@types/eslint-scope": "link:./tools/dummypkg", | ||
"@types/eslint": "link:./tools/dummypkg", | ||
"@types/estree": "link:./tools/dummypkg", | ||
"@types/eslint-scope": "link:./packages/repo-tools/src/dummypkg", | ||
"@types/eslint": "link:./packages/repo-tools/src/dummypkg", | ||
"@types/estree": "link:./packages/repo-tools/src/dummypkg", | ||
"@types/node": "^20.0.0", | ||
"@types/react": "^18.2.14", | ||
"eslint": "8.57.0", | ||
|
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.
I'm not a fan of adding in "secondary" code paths, like having two ways of running linting or type checking
&&
d together. It'd be less code & complexity to get the "primary" (npx nx ...
) commands working as expected.Let's fine a way to include what's under
.github/
andtools/
under nx.packages/repo-tools
now exists, maybe that's a good place for some files?