/eslint-config-vue-preset

Provides various shareable configs for `eslint-plugin-vue`.

Primary LanguageJavaScriptMIT LicenseMIT

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.

💿 Installation

npm install --save-dev eslint eslint-plugin-vue eslint-config-vue-preset

📖 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',
  ],
  // ...
}

🔧 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).