Skip to content

zedix/eslint-config

Repository files navigation

@zedix/eslint-config

version tag

ESLint shareable config with Prettier

Installation

$ yarn add --dev eslint prettier zedix/eslint-config.git#v1.x.x

Usage

Once the @zedix/eslint-config package is installed, you can use it by specifying @zedix/eslint-config in the extends section of the ESLint configuration.

In your .eslintrc.js:

// .eslintrc.js
module.exports = {
  extends: ['@zedix/eslint-config'],
};

or

// .eslintrc.js
module.exports = {
  extends: ['@zedix/eslint-config/vue'],
};

Alternatively, you can add an eslint config in the package.json:

{
  "eslintConfig": {
    "extends": "@zedix/eslint-config/vue"
  }
}

For Vue 3:

{
  "eslintConfig": {
    "extends": "@zedix/eslint-config/vue3"
  }
}

In your .prettierrc.js:

// .prettierrc.js
module.exports = require('@zedix/eslint-config/prettier');

References

Awesome ESLint