Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 989 Bytes

File metadata and controls

47 lines (34 loc) · 989 Bytes

@cloudflight/eslint-plugin-vue

The Cloudflight ESLint Plugin for Vue provides multiple configurations of ESLint rules recommended by Cloudflight.

You can find the directory of all rules including their reasoning here.

Dependencies

The following dependencies are required:

"@cloudflight/eslint-plugin-typescript": ">=0.19.1",
"@rushstack/eslint-patch": "1.2.0",
"eslint": ">=8.0.0 <9.0.0"

Usage

In your package.json add the following:

"devDependencies": {
    ...
    "@cloudflight/eslint-plugin-vue": "<version>",
    ...
  }

The plugin provides 1 configuration:

  • @cloudflight/vue/recommended
    • Contains rules for Vuejs files

Now open your .eslintrc.js and add one of the configurations:

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

module.exports = {
    ...
    extends: ['plugin:@cloudflight/vue/recommended'],
    parserOptions: {
        parser: '@typescript-eslint/parser',
    },
    ...
};