You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESLint has, since v3 changed the format of its rules and those of its plugins. When we now export a rule, we can also export a meta property, in which we can put anything we want. At the moment, this is not used very much, but I have started using it in some of my other plugins, like eslint-plugin-lodash-fp and eslint-plugin-fp.
In eslint-find-rules, a tool that tells you whether you configured every ESLint rule from the core rules and the imported plugins, there is an issue about reading the value of the deprecated field (available already in core rules) to avoid suggesting deprecated rules, and it's being proposed in plugins with deprecated rules (including import and react). And AVA will have one soon too.
There might be pretty other nifty things to do with this that I haven't yet thought of. Anyway, if you're interested in having semi-automatic README updates, we could discuss that here. Not sure what I'm proposing either, but at least, now you know that this exists and could have a use :)
The text was updated successfully, but these errors were encountered:
ESLint has, since v3 changed the format of its rules and those of its plugins. When we now export a rule, we can also export a
meta
property, in which we can put anything we want. At the moment, this is not used very much, but I have started using it in some of my other plugins, like eslint-plugin-lodash-fp and eslint-plugin-fp.The meta property looks like this:
The core ESLint rules are usually structured like the previous example (with a
docs
property inside themeta
object), so I just copied the structure.I currently use this to do two things:
npm run update-md
, and the README should get updated semi-automaticallyIn
eslint-find-rules
, a tool that tells you whether you configured every ESLint rule from the core rules and the imported plugins, there is an issue about reading the value of thedeprecated
field (available already in core rules) to avoid suggesting deprecated rules, and it's being proposed in plugins with deprecated rules (includingimport
andreact
). And AVA will have one soon too.There might be pretty other nifty things to do with this that I haven't yet thought of. Anyway, if you're interested in having semi-automatic README updates, we could discuss that here. Not sure what I'm proposing either, but at least, now you know that this exists and could have a use :)
The text was updated successfully, but these errors were encountered: