Eslint Pinia Plugin - Best Practices #2638
Replies: 3 comments
-
What a great start to a great discussion this is! |
Beta Was this translation helpful? Give feedback.
-
It would be desirable to have a |
Beta Was this translation helpful? Give feedback.
-
This rule is worth adding: #2848 (comment) |
Beta Was this translation helpful? Give feedback.
-
The beginning of this discussion came from this issue from MickL identifying the need for an eslint plugin that could enforce best practices and prevent common errors. I started looking at the pinia documentation and some common suggestions made there and created a new plugin here:
@posva provided some feedback on the first few rules, including considerations for configurable options and refining the scope of certain rules. Right now the set of existing rules are the following:
Furthermore @posva already gave some more suggestions toward other helpful rules:
The next steps involves refining the proposed rules based on feedback and implementing the rules that already have been suggested. I am opening a discussion to gather further insights from the community. Since the plugin should be helpful for a wide audience of pinia users, I'm aiming to create rules that make sense for across various projects (through configuration) or are helpful in preventing common errors.
Beta Was this translation helpful? Give feedback.
All reactions