We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
language
dialects
meta
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every rule
N/A
Other
meta: { type: "problem", docs: { description: "Disallow HTML tags", }, messages: { disallowedElement: 'HTML element "{{name}}" is not allowed.', }, schema: [ { type: "object", properties: { allowed: { type: "array", items: { type: "string", }, uniqueItems: true, }, }, additionalProperties: false, }, ], },
Currently, none of the rules have the language or dialects fields in their meta.
I noticed that all new rules added to ESLint for TypeScript support now include the language and dialects fields:
https://github.com/eslint/eslint/pull/19562/files#diff-d46d32957ba664c4b406c7587c5e047ab7f719ea98a597e0316837d61be4fc48R150-R151
Like we did for JavaScript, I’d like to suggest adding the language and dialects fields to meta as well.
I think we could add them like this:
meta: { // ... language: 'markdown', dialects: ['commonmark', 'gfm'], // ... }
The language field should be 'markdown', and the dialects can be 'commonmark' and 'gfm'.
'markdown'
'commonmark'
'gfm'
No response
The text was updated successfully, but these errors were encountered:
We are holding off on doing this for other plugins as we are revisiting this design: eslint/eslint#19462
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
What rule do you want to change?
Every rule
What change do you want to make?
N/A
How do you think the change should be implemented?
Other
Example code
What does the rule currently do for this code?
Currently, none of the rules have the
language
ordialects
fields in theirmeta
.I noticed that all new rules added to ESLint for TypeScript support now include the
language
anddialects
fields:https://github.com/eslint/eslint/pull/19562/files#diff-d46d32957ba664c4b406c7587c5e047ab7f719ea98a597e0316837d61be4fc48R150-R151
Like we did for JavaScript, I’d like to suggest adding the
language
anddialects
fields tometa
as well.What will the rule do after it's changed?
I think we could add them like this:
The
language
field should be'markdown'
, and thedialects
can be'commonmark'
and'gfm'
.Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: