Skip to content

chore: make internal-rules not being a package#18601

Merged
nzakas merged 1 commit intomainfrom
internalrules-notpackage
Jun 18, 2024
Merged

chore: make internal-rules not being a package#18601
nzakas merged 1 commit intomainfrom
internalrules-notpackage

Conversation

@mdjermanovic
Copy link
Copy Markdown
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:

Now that we're no longer using .eslintrc.js, tools/internal-rules doesn't need to be a package since we can load local plugins directly in the config file. This is also an example of how to easily use internal rules in the new config system.

What changes did you make? (Give an overview)

Removed tools/internal-rules/package.json and updated the usage accordingly.

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

@mdjermanovic mdjermanovic requested a review from a team as a code owner June 18, 2024 10:45
@eslint-github-bot eslint-github-bot Bot added the chore This change is not user-facing label Jun 18, 2024
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 18, 2024

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit 74146ca
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/6671654c899a2e0008064443

Comment thread package.json
"eslint-plugin-eslint-plugin": "^6.0.0",
"eslint-plugin-internal-rules": "file:tools/internal-rules",
"eslint-release": "^3.2.2",
"eslint-rule-composer": "^0.3.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you intend to add this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, it's used by the internal multiline-comment-style rule:

const ruleComposer = require("eslint-rule-composer");

It was a dependency in the removed package.json so we now need to add it as a dev dependency in the root package.json.

Copy link
Copy Markdown
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.

@nzakas nzakas merged commit c7ddee0 into main Jun 18, 2024
@nzakas nzakas deleted the internalrules-notpackage branch June 18, 2024 14:45
@eslint-github-bot eslint-github-bot Bot locked and limited conversation to collaborators Dec 16, 2024
@eslint-github-bot eslint-github-bot Bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants