Are there any plans to offer the eslint plugin? #2568
shinGangan
started this conversation in
Ideas
Replies: 1 comment
-
👀 Have there been any recent musings about what to do wrt linting? I'm seeing this MonarchMDC Monaco language tool repo from the NuxtLabs team is very active, so I'm wondering what's cooking! Current Configuration WorkaroundHere's my // @ts-check
export default {
config: {
// Gets confused with MDC syntax
MD003: false, // YAML front matter uses `---`
MD007: false, // Indentation used for MDC (lists)
MD018: false, // Slots are not headers `#title` or `#description`
MD022: false, // Thinks YAML is that headers should be surrounded by blank lines
MD023: false, // Indentation used for MDC
},
ignores: [
'**/*.code-search',
'**/bower_components',
'**/node_modules',
'**/.git',
'**/vendor',
],
globs: ['./content/**/*.md'],
} Needs
Nice-to-haveThe ability to write custom rules in any of the major formatter/linter ecosystems so that I can enforce props, style, etc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Nuxt Content has Markdown Components notation.
I am very grateful to MDC VS Code extension for its help in implementing Nuxt Content.
However, there are many cases where it would be nice to be able to check statically like eslint-plugin-vue.
For example.
:
missing in an inline component before merging pull requestetc.
Disucuss
We believe the segregation will be as follows.
eslint-plugin-vue
→ static check of/components/content/*
eslint-plugin-nuxt-content (tentative)
→ static check of/content/*
However, we think it is necessary to consider the segregation from MarkdownLint.
(e.g., write No MarkdownLint in Docs like No Prettier in the Nuxt Contribution Guide).
Beta Was this translation helpful? Give feedback.
All reactions