-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[lint-diff] Enable eslint #38912
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
Merged
Merged
[lint-diff] Enable eslint #38912
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0bd6b02
[lint-diff] Add eslint deps
mikeharder 8b4d0a5
npm i
mikeharder e0c3288
eslint minimal config
mikeharder 26f4b07
enable lint in action
mikeharder 0274a0b
[runChecks.ts] let -> const
mikeharder 9e6811f
[correlateResults.ts] any -> unknown
mikeharder d46c104
[lintdiff-types.ts] any -> unknown
mikeharder 93d0e5d
[markdown-utils] any -> unknown, string interpolation
mikeharder 3bf7514
enable typeChecked and test/**
mikeharder f199e03
[generateReport.ts] toString()
mikeharder 6eec00b
[lint-diff.ts] inspect
mikeharder a399373
[markdown-utils.ts] Downcast tokens
mikeharder 7ece8b9
[processChanges.ts] Remove unnecessary async/await
mikeharder 97d7c17
[runChecks.ts] remove unnecessary downcast
mikeharder 5127216
[correlateResults.test.ts] unnecessary async
mikeharder 8dae980
[generateReport.test.ts] cast -> generic
mikeharder c2121ab
[processChanges.fs.test.ts] cast -> generic
mikeharder 3457e29
[processChanges.test.ts] async/await
mikeharder fbfe8b0
[runChecks.test.ts] await, any
mikeharder 294a338
[util.test.ts] simplify memfs mocking
mikeharder 571dacc
[runChecks.test.ts] as -> decl
mikeharder 492efb8
[processChanges.test.ts] Fix expect
mikeharder 12ff95e
[correlateResults.ts] toString(), cast JSON.parse()
mikeharder cfa3e5f
[util.ts] cast JSON.parse()
mikeharder 1600c74
Merge branch 'main' into lint-diff-eslint-minimal
mikeharder fc1d6b7
Merge branch 'main' into lint-diff-eslint-minimal
mikeharder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // Keep in sync with .github/shared/eslint.config.js | ||
|
|
||
| import eslint from "@eslint/js"; | ||
| import { defineConfig } from "eslint/config"; | ||
| import globals from "globals"; | ||
| import tseslint from "typescript-eslint"; | ||
|
|
||
| /** @type {import('eslint').Linter.Config[]} */ | ||
| export default defineConfig( | ||
| eslint.configs.recommended, | ||
| tseslint.configs.recommendedTypeChecked, | ||
| { | ||
| languageOptions: { | ||
| // we only run in node, not browser | ||
| globals: globals.node, | ||
| // required to use tseslint.configs.recommendedTypeChecked | ||
| parserOptions: { | ||
| projectService: { | ||
| allowDefaultProject: ["*.js", "cmd/*.js"], | ||
| }, | ||
| // ensures the tsconfig path resolves relative to this file | ||
| // default is process.cwd() when running eslint, which may be incorrect | ||
| tsconfigRootDir: import.meta.dirname, | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| ignores: ["coverage/**", "dist/**"], | ||
| }, | ||
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.