eslint-plugin-react-pug
eslint-plugin-react-pug copied to clipboard
Add supporting of pugjs with react
Bad: ```pug div( attribute ) ``` Good: ```pug div( attribute ) ``` 
Basically: ```pug div= variable ``` Instead of: ```pug div #{variable} ```
When we use multiline attributes this plugin does not check indentation correctly
We need to control amount of spaces when we start code, loops, attributes, use js.
### Bad ```pug div(attr after) ``` ### Good ```pug div(attr after) ```
We should either require or prohibit commas. No need to use both approaches
Sometimes I see that people use this way to render strings: ```pug div= 'Hello World' ``` It will be great to have a rule that forces people to use Pug...
It's a common practice over all plugins. Not sure why did I miss that in the beginning. Need to turn recommended settings via `plugin:react-pug/recommended`.