Add support for meta.url to enable links in terminal #5842
Labels
status: ready to implement
is ready to be worked on by someone
type: enhancement
a new feature that isn't related to rules
What is the problem you're trying to solve?
As discussed with #2622, I think it is very useful if stylelint rules (including plugins) could have metadata with doc URL, deprecated, etc. like ESLint.
For example, use cases:
Actually, we had metadata with the
deprecated
property:stylelint/lib/rules/at-rule-blacklist/index.js
Line 62 in 16b4595
Also, the Stylelint document below has described rule metadata:
stylelint/docs/developer-guide/rules.md
Line 198 in 9e75552
What solution would you like to see?
I propose to define a metadata schema via the document and type definitions (TypeScript).
For example of a rule with metadata:
For the
Rule
type of the TypeScript definitions, we would add ameta
property:stylelint/types/stylelint/index.d.ts
Lines 154 to 164 in 9e75552
The text was updated successfully, but these errors were encountered: