Skip to content

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

@dps-es/eslint-config

ESlint & Prettier configuration for VS Code, compatible with Babel parser (using preset-env)

Installation

  1. 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}
  1. 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).

  2. Run npm i -D @dps-es/eslint-config

Configuration

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"
}

Details


Assets

  • eslint-config-7.0.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0