Provides various ESLint Shareable Configs for eslint-plugin-vue.
npm install --save-dev eslint eslint-plugin-vue eslint-config-vue-preset
Use .eslintrc.*
file to configure rules. See also: https://eslint.org/docs/user-guide/configuring.
Example .eslintrc.js:
module.exports = {
extends: [
// Add ruleset provided by eslint-plugin-vue.
'plugin:vue/recommended',
// Add ruleset provided by eslint-config-vue-preset.
'vue-preset/standard',
],
// ...
}
It is ruleset that changed the setting of rules provided by "plugin:vue/vue3-recommended"
to "error"
.
{
"extends": [
"plugin:vue/base",
+ "vue-preset/vue/vue3-recommended-e"
]
}
It is ruleset that changed the setting of rules provided by "plugin:vue/vue3-strongly-recommended"
to "error"
.
{
"extends": [
"plugin:vue/base",
+ "vue-preset/vue/vue3-strongly-recommended-e"
]
}
It is ruleset that changed the setting of rules provided by "plugin:vue/recommended"
to "error"
.
{
"extends": [
"plugin:vue/base",
+ "vue-preset/vue/recommended-e"
]
}
It is ruleset that changed the setting of rules provided by "plugin:vue/strongly-recommended"
to "error"
.
{
"extends": [
"plugin:vue/base",
+ "vue-preset/vue/strongly-recommended-e"
]
}
The ruleset of "airbnb"
for Vue template.
{
"extends": [
// `eslint-config-airbnb` ruleset
"airbnb",
// Apply the same rules to expressions in templates.
+ "vue-preset/airbnb"
]
}
The ruleset of "standard"
for Vue template.
{
"extends": [
// `eslint-config-standard` ruleset
"standard",
// Apply the same rules to expressions in templates.
+ "vue-preset/standard"
]
}
The ruleset of "google"
for Vue template.
{
"extends": [
// `eslint-config-google` ruleset
"google",
// Apply the same rules to expressions in templates.
+ "vue-preset/google"
]
}
The ruleset of "eslint:recommended"
for Vue template.
{
"extends": [
// eslint recommended ruleset
"eslint:recommended",
// Apply the same rules to expressions in templates.
+ "vue-preset/eslint/recommended"
]
}
See the LICENSE file for license rights and limitations (MIT).