eslint-config-vue-preset

Provides various ESLint Shareable Configs for eslint-plugin-vue.
2,818 1
Install
npm install eslint-config-vue-preset
Latest Version:0.7.1
License:MIT
Last Updated:Jul 16, 2026
Links: GitHub  ·  npm
Maintainer: ota-meshi

eslint-config-vue-preset

NPM license NPM version NPM downloads NPM downloads NPM downloads NPM downloads Build Status Coverage Status

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

js-standard-style

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

@lehoczky/eslint-config-vue

ESLint Config for Vue3 with TypeScript

2,595 0
@anoesj/eslint-config-vue-ts

Anoesj's ESLint config for Vue and Nuxt projects with TypeScript

1,603 0
@nitra/eslint-config

An ESLint shareable config for projects using Vue and Node

30,246
@dsb-norge/eslint-config-dsb-vue3-ts

ESLint standard config for Vue.js version 3 projects with Typescript support

3,371 0
eslint-config-gluons

Gluons' personal ESLint shareable config.

2,759 1

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