Chaz Watkins
Use ES Lint, Jest, Prettier configs with deno
Thanks for the responses and guidance.
I had noticed the
deno fmt --unstable-component
flag and thought it could be extended. But, after reviewing the demo fmt
code, I see it's simply looking at the file extensions for those frameworks and calling format_html
since those frameworks name their HTML templates with custom extensions. LWC doesn't do this; it only has .html and js/ts files. So, the formatter should work for LWC.
However, for linting, LWC has many ES Lint rules for various functionalities that the framework provides. Is there currently a way to add your own rules to deno lint
? If not, are there any plans for this in the future?9 replies