-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: custom lint rules #18206
chore: custom lint rules #18206
Conversation
📸 UI snapshots have been updated6 snapshot changes in total. 0 added, 6 modified, 0 deleted:
Triggered by this commit. |
@@ -0,0 +1,3 @@ | |||
const { rules } = require('eslint-plugin-react') | |||
|
|||
module.exports = rules['forbid-elements'] |
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.
noice! 💯
@@ -1,4 +1,4 @@ | |||
lockfileVersion: '6.1' | |||
lockfileVersion: '6.0' |
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.
pnpm is opaque to me... do we care about this downgrade?
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.
don't worry, a random PR from me will upgrade it soon anyway ☠️ , and the cycle will continue
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.
I can't find the exact link but I came across this in another thread recently and the tldr was that it just flapped based on a local pnpm version. Not majorly important
Problem
The warning lint rules for
react/forbid-elements
are not applied because of a duplicate key in the object. This means that the warnings never appear in filesChanges
react/forbid-elements
rule and rename itposthog/warn-elements
Based on the great work from @pauldambra in PostHog/posthog-js#843
How did you test this code?