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

Use ESLint 9 to lint libs/** #1668

Merged
merged 18 commits into from
Sep 6, 2024

Conversation

sndrs
Copy link
Member

@sndrs sndrs commented Aug 28, 2024

What are you changing?

Why?

  • staying up to date

Anything else?

yeah - noticed doing this that we don't lint anything outside libs/**, so will add that in a further PR

@sndrs sndrs requested review from a team as code owners August 28, 2024 11:44
@sndrs sndrs requested a review from a team August 28, 2024 11:44
@sndrs sndrs requested a review from a team as a code owner August 28, 2024 11:44
Copy link

changeset-bot bot commented Aug 28, 2024

⚠️ No Changeset found

Latest commit: 9ce3663

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sndrs sndrs self-assigned this Aug 28, 2024
@sndrs sndrs added the run_chromatic Runs chromatic when label is applied label Aug 28, 2024
Copy link
Contributor

Tip

Once this PR is ready to go, add the run_chromatic label to run the Chromatic tests.

This saves us a lot of money by not running the tests before we need them.

@sndrs
Copy link
Member Author

sndrs commented Aug 28, 2024

seems like there's currently a types conflict when installing @stylistic/eslint-plugin and @eslint/compat: eslint/rewrite#104

@sndrs sndrs changed the base branch from main to sndrs/eslint9/comments September 4, 2024 14:40
Base automatically changed from sndrs/eslint9/comments to main September 4, 2024 14:40
@sndrs
Copy link
Member Author

sndrs commented Sep 4, 2024

seems like there's currently a types conflict when installing @stylistic/eslint-plugin and @eslint/compat: eslint/rewrite#104

fixed by #1689

...guardian.configs.jest,
{
ignores: [
'node_modules',
Copy link
Contributor

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

Copy link
Contributor

@oliverabrahams oliverabrahams left a 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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'node_modules',

...guardian.configs.react,
{
ignores: [
'node_modules',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'node_modules',

export default [
...guardian.configs.recommended,
{
ignores: ['node_modules', '.wireit'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ignores: ['node_modules', '.wireit'],
ignores: ['.wireit'],

...guardian.configs.jest,
{
ignores: [
'node_modules',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'node_modules',

...guardian.configs.jest,
{
ignores: [
'node_modules',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'node_modules',

export default [
...guardian.configs.recommended,
{
ignores: ['node_modules', 'dist', '.wireit'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ignores: ['node_modules', 'dist', '.wireit'],
ignores: ['dist', '.wireit'],

export default [
...guardian.configs.recommended,
{
ignores: ['node_modules', '.wireit'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ignores: ['node_modules', '.wireit'],
ignores: ['.wireit'],

export default [
{
ignores: [
'node_modules',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'node_modules',

export default [
{
ignores: [
'node_modules',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'node_modules',

@sndrs sndrs changed the base branch from main to sndrs/restore-libs-version September 6, 2024 12:06
… 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
@sndrs sndrs merged commit 751a6e1 into sndrs/restore-libs-version Sep 6, 2024
4 checks passed
@sndrs sndrs deleted the sndrs/use-eslint9-config branch September 6, 2024 12:11
@sndrs sndrs restored the sndrs/use-eslint9-config branch September 6, 2024 12:16
@sndrs
Copy link
Member Author

sndrs commented Sep 6, 2024

replace (accidentally) by #1696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consume ESLint 9 configs in CSNX
2 participants