Skip to content

trendmicro-frontend/eslint-config-trendmicro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This package provides .eslintrc as an extensible shared config.

Resources

License

Stars

Watchers

Forks

Packages

No packages published