wix-incubator / react-templates

Light weight templates for react
https://wix.github.io/react-templates
MIT License
2.82k stars 207 forks source link

Linting for react-templates #189

Closed delijah closed 7 years ago

delijah commented 8 years ago

I am missing a linting possibility for react-templates. There is a quite nice linting plugin for JSX. Would be awesome to have this feature for react-templates!

https://github.com/yannickcr/eslint-plugin-react

nippur72 commented 8 years ago

For a linter to be realized we need to improve how react-templates parses and generates the code. Currently, it's not the canonical text file -> AST -> code, in other words we don't have an AST for the linter to reason about.

delijah commented 7 years ago

Thank you very much for your answer. One of the reasons i've switched to JSX, even though i love the idea of react-templates!