eslint-config 7.0.0
Install from the command line:
Learn more about npm packages
$ npm install @dps-es/eslint-config@7.0.0
Install via package.json:
"@dps-es/eslint-config": "7.0.0"
About this version
ESlint & Prettier configuration for VS Code, compatible with Babel parser (using preset-env)
- Add the following lines to your proyect's
.npmrc
file
@dps-es:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
-
Add the ENV variable GITHUB_TOKEN to your terminal (not .env file), with the valuea of a Github personal access token with package:read permission granted (https://github.com/settings/tokens).
-
Run
npm i -D @dps-es/eslint-config
Add the following lines to your proyect's package.json
or each property in it's corresponding config file (.eslintrc
, .babelrc
).
"babel": {
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-transform-react-jsx"]
},
"eslintConfig": {
"extends": "@dps-es"
}
This module exports 2 different configurations (dev & prod):
// For prod rules
{
"extends": "@dps-es"
}
// For dev rules (turns some errors into warnings -> Console, debugger, unused)
{
"extends": "@dps-es/eslint-config/dev"
}