eslint-config-trendmicro
v3.2.0
Published
Trend Micro's ESLint config.
Downloads
2,575
Readme
eslint-config-trendmicro
This package provides .eslintrc as an extensible shared config.
Usage
We export three ESLint configurations for your usage.
eslint-config-trendmicro
- Install the latest version of eslint-config-trendmicro:
npm install --save-dev eslint-config-trendmicro@latest
- 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
- Add
"extends": "trendmicro"
to .eslintrc:
{
"extends": "trendmicro",
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true
},
"plugins": [
"@babel"
],
"rules": {
}
}