-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use ESLint 9 to lint libs/**
#1668
Conversation
|
Tip Once this PR is ready to go, add the This saves us a lot of money by not running the tests before we need them. |
seems like there's currently a types conflict when installing |
4989920
to
d3d18a0
Compare
fixed by #1689 |
d3d18a0
to
543565e
Compare
44c5ae2
to
c0c8f13
Compare
# Conflicts: # libs/@guardian/browserslist-config/package.json # pnpm-lock.yaml
c0c8f13
to
d83f07e
Compare
...guardian.configs.jest, | ||
{ | ||
ignores: [ | ||
'node_modules', |
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.
This is ignored automatically by eslint, can see the argument for writing it anyway
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.
Removed unnecessary ignore node_modules
...guardian.configs.jest, | ||
{ | ||
ignores: [ | ||
'node_modules', |
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.
'node_modules', |
...guardian.configs.react, | ||
{ | ||
ignores: [ | ||
'node_modules', |
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.
'node_modules', |
export default [ | ||
...guardian.configs.recommended, | ||
{ | ||
ignores: ['node_modules', '.wireit'], |
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.
ignores: ['node_modules', '.wireit'], | |
ignores: ['.wireit'], |
...guardian.configs.jest, | ||
{ | ||
ignores: [ | ||
'node_modules', |
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.
'node_modules', |
...guardian.configs.jest, | ||
{ | ||
ignores: [ | ||
'node_modules', |
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.
'node_modules', |
export default [ | ||
...guardian.configs.recommended, | ||
{ | ||
ignores: ['node_modules', 'dist', '.wireit'], |
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.
ignores: ['node_modules', 'dist', '.wireit'], | |
ignores: ['dist', '.wireit'], |
export default [ | ||
...guardian.configs.recommended, | ||
{ | ||
ignores: ['node_modules', '.wireit'], |
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.
ignores: ['node_modules', '.wireit'], | |
ignores: ['.wireit'], |
export default [ | ||
{ | ||
ignores: [ | ||
'node_modules', |
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.
'node_modules', |
export default [ | ||
{ | ||
ignores: [ | ||
'node_modules', |
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.
'node_modules', |
… into sndrs/use-eslint9-config # Conflicts: # libs/@guardian/ab-react/package.json # libs/@guardian/core-web-vitals/package.json # libs/@guardian/identity-auth/package.json # libs/@guardian/source-development-kitchen/.storybook/main.ts # libs/@guardian/source-development-kitchen/package.json # libs/@guardian/source/.storybook/main.ts # libs/@guardian/source/package.json # pnpm-lock.yaml
replace (accidentally) by #1696 |
What are you changing?
@guardian/eslint-config
to support ESLint v9 #1658@guardian/eslint-config
slightly to re-enable comments lintingWhy?
Anything else?
yeah - noticed doing this that we don't lint anything outside
libs/**
, so will add that in a further PR