eslint-config-vue-preset
eslint-config-vue-preset
Provides various ESLint Shareable Configs for eslint-plugin-vue.
:cd: Installation
npm install --save-dev eslint eslint-plugin-vue eslint-config-vue-preset
:book: Usage
Configuration
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',
],
// ...
}
:wrench: Preset Configs
vue-preset/vue/vue3-recommended-e
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"
]
}
vue-preset/vue/vue3-strongly-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"
]
}
vue-preset/vue/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"
]
}
vue-preset/vue/strongly-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"
]
}
vue-preset/airbnb
The ruleset of "airbnb" for Vue template.
{
"extends": [
// `eslint-config-airbnb` ruleset
"airbnb",
// Apply the same rules to expressions in templates.
+ "vue-preset/airbnb"
]
}
vue-preset/standard
The ruleset of "standard" for Vue template.
{
"extends": [
// `eslint-config-standard` ruleset
"standard",
// Apply the same rules to expressions in templates.
+ "vue-preset/standard"
]
}
vue-preset/google
The ruleset of "google" for Vue template.
{
"extends": [
// `eslint-config-google` ruleset
"google",
// Apply the same rules to expressions in templates.
+ "vue-preset/google"
]
}
vue-preset/eslint/recommended
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"
]
}
License
See the LICENSE file for license rights and limitations (MIT).
Related Packages
Anoesj's ESLint config for Vue and Nuxt projects with TypeScript
ESLint standard config for Vue.js version 3 projects with Typescript support
Version History
| Version | Released | License |
|---|---|---|
| 0.7.1 | MIT | |
| 0.6.0 | MIT | |
| 0.5.0 | MIT | |
| 0.4.0 | MIT | |
| 0.3.1 | MIT | |
| 0.3.0 | MIT | |
| 0.2.0 | MIT | |
| 0.1.0 | MIT | |
| 0.0.5 | MIT | |
| 0.0.4 | MIT | |
| 0.0.3 | MIT | |
| 0.0.2 | MIT | |
| 0.0.1 | MIT |