Skip to content
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

Support ESLint 8.x #73

Merged
merged 2 commits into from
Mar 23, 2022
Merged

Support ESLint 8.x #73

merged 2 commits into from
Mar 23, 2022

Conversation

72636c
Copy link
Member

@72636c 72636c commented Mar 22, 2022

I believe the only remaining incompatibility is with the Cypress plugin. This shouldn't be a blocker as we still support ESLint 7.x in theory.

Closes #62.

I believe the only remaining incompatibility is with the Cypress plugin.
This shouldn't be a blocker as we still support ESLint 7.x in theory.
Comment on lines +88 to +93
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
presets: ['@babel/preset-react'],
},
requireConfigFile: false,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -118,7 +121,7 @@ const baseConfig = {
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'prettier',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sourceType: 'module',
ecmaFeatures: { jsx: true },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSX support is encapsulated in the React preset

@@ -137,7 +140,6 @@ const baseConfig = {
ERROR,
{ ignoreParameters: true },
],
'@typescript-eslint/explicit-module-boundary-types': OFF,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed from the recommended rule set typescript-eslint/typescript-eslint#3746

@72636c
Copy link
Member Author

72636c commented Mar 23, 2022

Would appreciate eyes on this one @seek-oss/sku-maintainers. This seems to work fine for skuba and a couple sku apps I tested via Yarn resolution override, but you'll have a more holistic view. There's a beta published: https://github.com/seek-oss/eslint-config-seek/releases/tag/v9.0.0-beta.0

The TypeScript ESLint bump should allow us to upgrade to newer TypeScript versions without an annoying warning being printed to the terminal.

Copy link
Contributor

@mattcompiles mattcompiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All makes sense mate. Was just going to ask if you'd tested it in a real app but sounds like you've got that covered. Seeing as you're versioning as a major I think it's safe to merge. 👍

package.json Outdated
"find-root": "^1.1.0"
},
"devDependencies": {
"@changesets/cli": "2.17.0",
"@changesets/get-github-info": "0.5.0",
"eslint": "^7.14.0",
"eslint": "7.32.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be 8 now? Realise it's a dev dep.

Co-authored-by: Matt Jones <mjones@seek.com.au>
@72636c 72636c merged commit 35af153 into master Mar 23, 2022
@72636c 72636c deleted the eslint-8 branch March 23, 2022 03:19
@seek-oss-ci seek-oss-ci mentioned this pull request Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ESLint 8.x
2 participants