1.0.3 • Published 6 years ago
eslint-config-lumigu v1.0.3
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 -DUsage
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 .estlingrcSecond, 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",
}
}