8.0.1 • Published 2 years ago

@vue/eslint-config-standard v8.0.1

Weekly downloads
127,642
License
MIT
Repository
github
Last release
2 years ago

@vue/eslint-config-standard

eslint-config-standard for Vue

This config is specifically designed to be used by @vue/cli & create-vue setups and is not meant for outside use (it can be used but some adaptations on the user side might be needed - for details see the config file).

A part of its design is that this config may implicitly depend on other parts of @vue/cli/create-vue setups, such as eslint-plugin-vue being extended in the same resulting config.

Installation

In order to work around a known limitation in ESLint, we recommend you to use this package alongside @rushstack/eslint-patch, so that you don't have to install too many dependencies:

npm add --dev @vue/eslint-config-standard @rushstack/eslint-patch

Usage

An example .eslintrc.cjs:

require("@rushstack/eslint-patch/modern-module-resolution")

module.exports = {
  root: true,
  extends: [
    'plugin:vue/vue3-essential',
    '@vue/eslint-config-standard'
  ]
}

Aliases

By default, none of the built-in rules require you to configure aliases in ESLint.

But if you want to enable some additional rules that need to actually resolve the imported module on the filesystem (e.g. import/no-unresolved) by yourself, you should configure it. In that case, we provided a helper function to simplify the task.

For example, it is a widely accepted convention to use @ as an alias to the src folder in the Vue ecosystem. To enable this, you can use the following config:

require('@rushstack/eslint-patch/modern-module-resolution')

const path = require('node:path')
const createAliasSetting = require('@vue/eslint-config-standard/createAliasSetting')

module.exports = {
  root: true,
  extends: [
    'plugin:vue/vue3-essential',
    '@vue/eslint-config-standard'
  ],
  rules: {
    'import/no-unresolved': 'error'
  }
  settings: {
    ...createAliasSetting({
      '@': `${path.resolve(__dirname, './src')}`
    })
  }
}

createAliasSetting accepts a map of aliases and their corresponding paths, and returns a settings object to be spread in to the settings field of the ESLint config.

@wangxiaoxiao45/vue-fastmagnoabsass-sdfddabc-jdjdjjdeuaaaio@gametactic/meta-vue-devvue-table-helpereslint-config-prettystandard-vues-admin-ui@mario34/lint-config@reason/eslint-configtestmagno@infinitebrahmanuniverse/nolb-_vue_@jvbf2e/eslint-config-silk@everything-registry/sub-chunk-994shoushoushipeslint-config-bfodongxiflowplugin@d1m-atom/taro-vue-cli@bankai/eslint-config@bitmain/eslint-plugin-ai-vue@bkui/eslint-config-bk@carpathian-ninjas/eslint-plugin-base@carlos.gonzalez/banner@carlos.gonzalez/cm-bannerpower-puff-gen@cnamts/eslint-config-vue@create-project/cli@byu-oit/nuxt-common@blueking/eslint-config@blueking/eslint-config-bkbk-vision-eslint-configbuffettbuffettuiradiate-frameworkcullen-eslint-vue@amilochau/eslint-config-vueeslint-config-concisioneslint-config-codecceslint-config-jsc-front-linteslint-config-jry-eslinteslint-config-sellingeslint-config-uatthaphoneslint-config-team23-vue-testeslint-config-test-brookeslint-config-tech-front-linteslint-config-vue-standardeslint-config-cullen-vueeslint-config-cybereslint-config-opendtceslint-config-jkarczmeslint-plugin-baseeslint-config-xiaoprogrammeeslint-config-xprogrammeeslint-plugin-silkseslint-plugin-vue-kuzzleeslint-config-macopediaeslint-config-lxcx-vueeslint-config-proladonesrun-coreeslint-plugin-edeslint-plugin-egrand-vueeslint-plugin-lendiluoshen@hearro/hearro-sdk@heibanfe/eslint-config-heiban@hpi-schul-cloud/eslint-config@freewild/fw-lib@hbcomponents/haibo-map2@forgleaner/eslint-config@ezyaez/eslint-config-vue@kukefe/eslint-config-kuke@laura-wert/eslint-config@lintest/cli@propelinc/eslint-config@proladon/eslint-config-proladon@redskyburning/eslint-config-vue-js@redskyburning/eslint-config-vue-ts@sagacorp/eslint-config-basejw-frame-test@iyoha/eslint-config@jeff9511/eslint-config-jeff@shelter-zone/eslint-config-proladon@sien-technology/eslint-config-ohbot@orbica/eslint-config-vue@renanbronchart/app@renanbronchart/app-old@renanbronchart/vue-ssr-pock@rayuse/eslint-config-ray@ratracegrad/eslint-config-vue@ntks/eslint-config@mornya/lintest@lingshugroup/icons@loophq/component-library@uscreen.de/eslint-config-prettystandard-vue@schul-cloud/eslint-configyushifrontuimagicship-cms@sepalang/lintpad@tilney-group/be-modal
8.0.1

2 years ago

8.0.0

2 years ago

7.0.0

2 years ago

6.1.0

3 years ago

6.0.0

3 years ago

5.1.2

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.0.0

5 years ago

3.0.5

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

3.0.0-rc.12

6 years ago

3.0.0-rc.11

6 years ago

3.0.0-rc.10

6 years ago

3.0.0-rc.9

6 years ago

3.0.0-rc.8

6 years ago

3.0.0-rc.7

6 years ago

3.0.0-rc.6

6 years ago

3.0.0-rc.5

6 years ago

3.0.0-rc.4

6 years ago

3.0.0-rc.3

6 years ago

3.0.0-rc.2

6 years ago

3.0.0-rc.1

6 years ago

3.0.0-beta.16

6 years ago

3.0.0-beta.15

6 years ago

3.0.0-beta.14

6 years ago

3.0.0-beta.13

6 years ago

3.0.0-beta.12

6 years ago

3.0.0-beta.11

6 years ago

3.0.0-beta.10

6 years ago

3.0.0-beta.9

6 years ago

3.0.0-beta.8

6 years ago

3.0.0-beta.7

6 years ago

3.0.0-beta.6

6 years ago

3.0.0-beta.5

6 years ago

3.0.0-beta.4

6 years ago

3.0.0-beta.3

6 years ago

3.0.0-beta.2

6 years ago

3.0.0-beta.1

6 years ago

3.0.0-alpha.13

6 years ago

3.0.0-alpha.12

6 years ago

3.0.0-alpha.11

6 years ago

3.0.0-alpha.10

6 years ago

3.0.0-alpha.9

6 years ago

3.0.0-alpha.8

6 years ago

3.0.0-alpha.7

6 years ago

3.0.0-alpha.6

6 years ago

3.0.0-alpha.5

6 years ago

3.0.0-alpha.4

6 years ago

3.0.0-alpha.3

6 years ago

3.0.0-alpha.2

6 years ago

3.0.0-alpha.1

6 years ago