1.0.3 • Published 4 years ago

eslint-config-lumigu v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

eslint-config-lumigu

ESLint configuration for Lumigu ECMAScript projects.

Install

Add the eslint-config-lumigu module and its peer dependencies to devDependencies:

$ npm install eslint-config-lumigu eslint eslint-plugin-import eslint-plugin-node -D

Usage

Shareable configurations are meant to be used with the extends feature in .eslintrc files. First, in the root of your project create a new .eslintrc file:

$ touch .estlingrc

Second, open your new .eslintrc file in your favorite editor, and the following JSON object:

{
  "extends": "lumigu"
}

You can add your own customization by adding overrides to the rules property.

Finally, you can validate your ECMAScript project by adding an NPM script to your package.json file:

{
  "scipts": {
    "lint": "eslint . --config=eslintrc",
  }
}