-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
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
feat(eslint-plugin): new nuxt-config-keys-order
rule
#491
Conversation
Deploying nuxt-eslint with Cloudflare Pages
|
/cc @danielroe I am Trying to do what we discussed yesterday; I love the idea of enabling this rule only when stylistic is enabled. I tried to extends the config to have |
'colorMode', | ||
'content', | ||
'mdc', | ||
'ui', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antfu I think you forgot @nuxt/eslint
itself
Resolve #465
This PR introduces a new rule,
nuxt/nuxt-config-keys-order
, that sorts keys insidenuxt.config.*
to a pre-defined order for consistency. The rule by default is only enable when stylistic is also enabled. But you could also explicitly control it: