0.6.0 • Published 3 years ago

eslint-config-vue-preset v0.6.0

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

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

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.0

4 years ago

0.1.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago