wikimedia / eslint-plugin-no-jquery

Control allowance of certain jQuery functions, and suggest or autofix alternatives.
MIT License
31 stars 8 forks source link

Allow users to specify a preferred format for single tags #139

Closed edg2s closed 5 years ago

edg2s commented 5 years ago

In no-parse-html we still allow parsing of single tags, but the regex allows for different styles:

We should allow users to enforce one of these sensible defaults for code consistency and greppability. These could be named:

I'm not sure we need to allow the space-closing style but it would be possible.

edg2s commented 5 years ago

Also added a fixer! Tested and ran on Wikibase: https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Wikibase/+/542442/