-
Notifications
You must be signed in to change notification settings - Fork 532
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
feat(eslint-config-fluid): Add how to add a new eslint rule in eslint-plugin-fluid
package.
#23004
base: main
Are you sure you want to change the base?
Conversation
🔗 Found some broken links! 💔 Run a link check locally to find them. See linkcheck output
|
|
||
Directory structure: | ||
|
||
```plaintext |
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.
Need to close this code block before point 3 below. Also, I think all of it and "DIrectory structure" above don't need the extra indentation.
|
||
Once PR 1 is merged, publish the new version of `@fluid-internal/eslint-plugin-fluid` by following the steps: | ||
|
||
1. **Publish**: Follow the [guide](https://eng.ms/docs/experiences-devices/opg/office-shared/fluid-framework/fluid-framework-internal/fluid-framework/docs/on-call/release/release) to publish the new version of `@fluid-internal/eslint-plugin-fluid`. |
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.
Let's just point to "the guidance in our internal documentation" but avoid the link. We probably shouldn't link directly to internal documentation from the public repo.
|
||
### 4. Add New Rule to the Appropriate Config | ||
|
||
Depending on the scope of the rule, add it to one of the following configurations (NOTE: `recommended` extends thre `minimal-deprecated.js`): |
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.
Depending on the scope of the rule, add it to one of the following configurations (NOTE: `recommended` extends thre `minimal-deprecated.js`): | |
Depending on the scope of the rule, add it to one of the following configurations (NOTE: `recommended` extends `minimal-deprecated.js`): |
```json | ||
{ | ||
"pnpmOverrides": { | ||
"@fluidframework/eslint-config-fluid": "file:<relative-path-to-config-directory>" |
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.
"@fluidframework/eslint-config-fluid": "file:<relative-path-to-config-directory>" | |
"@fluidframework/eslint-config-fluid": "file:<relative-path-to-eslint-config-fluid-package>" |
|
||
### 5. Publish New Version of `eslint-config-fluid` | ||
|
||
Once the PR is merged, publish the new version of `eslint-config-fluid` following the [guide](https://eng.ms/docs/experiences-devices/opg/office-shared/fluid-framework/fluid-framework-internal/fluid-framework/docs/on-call/release/release). |
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.
Same as above regarding the link.
Description
22739
This PR adds step by step instructions for:
estlint-plugin-fluid
eslint-plugin-fluid
versioneslint-config-fluid
version