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

chore: remove eslintrc export from eslint-config-eslint #18400

Merged
merged 5 commits into from Apr 27, 2024

Conversation

mdjermanovic
Copy link
Member

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:

Removes eslintrc export from eslint-config-eslint so that we can publish v10 without it.

What changes did you make? (Give an overview)

  1. Copied the content of packages/eslint-config-eslint/eslintrc.js directly into the root .eslintrc.js.
  2. Removed packages/eslint-config-eslint/eslintrc.js file and the corresponding export from packages/eslint-config-eslint/package.json.
  3. Also made a few updates to make this project lint-free when linted using .eslintrc.js.

Is there anything you'd like reviewers to focus on?

@eslint-github-bot eslint-github-bot bot added the chore This change is not user-facing label Apr 26, 2024
Copy link

netlify bot commented Apr 26, 2024

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit f67403a
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/662b86f15ff0600009408114

@mdjermanovic
Copy link
Member Author

I'm not sure why knip now considers eslint-config-eslint being unused.

@mdjermanovic mdjermanovic mentioned this pull request Apr 26, 2024
1 task
@mdjermanovic mdjermanovic marked this pull request as ready for review April 26, 2024 08:42
@mdjermanovic mdjermanovic requested a review from a team as a code owner April 26, 2024 08:42
aladdin-add
aladdin-add previously approved these changes Apr 26, 2024
Copy link
Member

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! It's working fine on my local vscode.

@aladdin-add aladdin-add requested a review from nzakas April 26, 2024 08:51
"rollup-plugin-node-polyfills",

// FIXME: not sure why is eslint-config-eslint reported as unused
"eslint-config-eslint"
Copy link
Member

Choose a reason for hiding this comment

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

it can be fixed by putting eslint.config.js in the entry.

and L35~38 can also be removed. :)

Copy link
Member Author

Choose a reason for hiding this comment

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

it can be fixed by putting eslint.config.js in the entry.

I tried that first, in 9f0f9b6, but it didn't work. Not sure why.

https://github.com/eslint/eslint/actions/runs/8845405029/job/24289216911

Copy link
Member Author

Choose a reason for hiding this comment

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

and L35~38 can also be removed. :)

Done in f67403a

@aladdin-add aladdin-add added the accepted There is consensus among the team that this change meets the criteria for inclusion label Apr 26, 2024
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Would like @aladdin-add to verify his changes before merging.

@aladdin-add aladdin-add merged commit 347d44f into main Apr 27, 2024
19 checks passed
@aladdin-add aladdin-add deleted the eslintconfigeslint-remove-eslintrc branch April 27, 2024 02:55
@aladdin-add
Copy link
Member

@mdjermanovic it has been merged, ready to release eslint-config-eslint v10. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion chore This change is not user-facing
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

None yet

3 participants