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

Move some custom rules from the extension to the shared config #229

Open
fregante opened this issue Feb 25, 2024 · 3 comments
Open

Move some custom rules from the extension to the shared config #229

fregante opened this issue Feb 25, 2024 · 3 comments

Comments

@fregante
Copy link
Collaborator

fregante commented Feb 25, 2024

I think someone suggested this before but I can't find it. Maybe it was just me?

I don’t think any of these rules is extension-specific, so it can be shared with other repos

https://github.com/pixiebrix/pixiebrix-extension/blob/main/eslint-local-rules/

    "local-rules/noNullRtkQueryArgs": "error",
    "local-rules/noInvalidDataTestId": "error",
    "local-rules/noExpressionLiterals": "error",
    "local-rules/notBothLabelAndLockableProps": "error",
    "local-rules/preferNullish": "warn",
    "local-rules/preferNullishable": "warn",

Only persistBackgroundData and noCrossBoundaryImports are really specific to the extension I think.

cc @grahamlangford @fungairino

Related

@grahamlangford
Copy link
Collaborator

@fregante
Copy link
Collaborator Author

cc @BLoe for pixiebrix/pixiebrix-extension#5466

Probably because we hadn't added the Testing Library ESLint plugin yet

@BLoe
Copy link
Collaborator

BLoe commented Feb 26, 2024

Yeah we either didn't know a rule existed already or we just had not added that plugin yet 🤷‍♂️

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

No branches or pull requests

3 participants