-
Notifications
You must be signed in to change notification settings - Fork 5
ESLint 9, flat config migration #145
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
Changes from 18 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6d2acdd
Remove 'React' exclusion from unused vars
AaronMoat 690d82f
Swap eslint-plugin-import
AaronMoat d910046
Upgrade prettier
AaronMoat dac74e3
Upgrade typescript
AaronMoat 8532fd5
Upgrade stuff
AaronMoat 3c5f20c
First cut
AaronMoat 931bd97
Wild that this breaks skuba's CI
AaronMoat b0ce127
Update to projectService, and drive-by cleanups
AaronMoat 8a82bd7
More joint ownership
AaronMoat f1fd5f4
Update .changeset/small-jeans-wave.md
AaronMoat d625e84
Update .changeset/small-jeans-wave.md
AaronMoat e1daf07
Is this anything?
AaronMoat b11c85a
words
AaronMoat 1c66a05
Remove duplicated config files for clarity
AaronMoat 002ad3b
Roll back React changes for this PR
AaronMoat 61bd332
Ditch root
AaronMoat ebd092b
Fewer peer dep warnings
AaronMoat 137719c
Swap to `sourceType: 'module'` for `sku` compatibility
AaronMoat ed8b92a
Remove Babel, set language options to defaults
AaronMoat 2d04824
Remove stray 6
AaronMoat ffe43d2
Hack around import-x
AaronMoat e3832e5
Try to simplify setup
AaronMoat 5b7569c
Merge branch 'master' into eslint-9-etc
AaronMoat 2f4b59e
Previous commit but better
AaronMoat 2c4324a
Hoist import-x for better extendability
AaronMoat 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,5 @@ | ||
--- | ||
'eslint-config-seek': minor | ||
--- | ||
|
||
Babel now treats all Javascript files to have a [`sourceType`](https://babeljs.io/docs/options#sourcetype) of `module` (previously `script`). | ||
AaronMoat marked this conversation as resolved.
Show resolved
Hide resolved
|
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,11 @@ | ||
--- | ||
'eslint-config-seek': minor | ||
--- | ||
|
||
Upgrade a number of dependencies. These should have no/minimal impact. | ||
|
||
- `@babel/core`, `@babel/eslint-parser`, `@babel/preset-react` | ||
- `eslint-plugin-cypress` | ||
- `eslint-config-prettier` | ||
- `eslint-plugin-jest` | ||
- `eslint-plugin-react`, `eslint-plugin-react-hooks` |
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,9 @@ | ||
--- | ||
'eslint-config-seek': major | ||
--- | ||
|
||
Replace `eslint-plugin-import` with `eslint-plugin-import-x` | ||
|
||
To migrate, any references to `eslint-plugin-import` should be replaced with `eslint-plugin-import-x`, and `import/` rules with `import-x/`. | ||
|
||
In addition, it's possible that this may introduce slight behaviour changes. |
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,5 @@ | ||
--- | ||
'eslint-config-seek': major | ||
--- | ||
|
||
Require TypeScript peer dependency >=5.5.4 |
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,15 @@ | ||
--- | ||
'eslint-config-seek': major | ||
--- | ||
|
||
Migrate to ESLint 9, `@typescript-eslint` 8. | ||
|
||
These changes may affect your project setup if you are customising your ESLint configuration. See the individual migration guides: | ||
|
||
- https://eslint.org/docs/latest/use/migrate-to-9.0.0 | ||
- https://typescript-eslint.io/blog/announcing-typescript-eslint-v8 | ||
|
||
|
||
AaronMoat marked this conversation as resolved.
Show resolved
Hide resolved
|
||
In addition, through these major upgrades, some lint rules have changed or have been renamed. You will likely need to autofix and/or adjust your code after running ESLint. | ||
|
||
As part of this migration, this project has migrated to Flat ESLint configuration. Read the migration guide: https://eslint.org/docs/latest/use/configure/migration-guide. |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
* @seek-oss/sku-maintainers | ||
* @seek-oss/front-end-contributors | ||
* @seek-oss/sku-maintainers @seek-oss/sig-backend-tooling |
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.