Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.55 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.55 KB

eslint-config-trendmicro npm version build status

NPM

This package provides .eslintrc as an extensible shared config.

Usage

We export three ESLint configurations for your usage.

eslint-config-trendmicro

  1. Install the latest version of eslint-config-trendmicro:
npm install --save-dev eslint-config-trendmicro@latest
  1. Ensure peerDependencies are installed with correct version numbers by running:
npm info "eslint-config-trendmicro@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs -L1 npm install --save-dev

Which produces and runs commands like this:

npm install --save-dev eslint@^7.0.0
npm install --save-dev eslint-plugin-import@latest
npm install --save-dev eslint-plugin-jsx-a11y@latest
npm install --save-dev eslint-plugin-react@latest
  1. Add "extends": "trendmicro" to .eslintrc:
{
  "extends": "trendmicro",
  "parser": "@babel/eslint-parser",
  "env": {
    "browser": true,
    "node": true
  },
  "plugins": [
    "@babel"
  ],
  "rules": {
  }
}