eslint-plugin
/
1.2.0
eslint-plugin 1.2.0
Install from the command line:
Learn more about npm packages
$ npm install @bepower/eslint-plugin@1.2.0
Install via package.json:
"@bepower/eslint-plugin": "1.2.0"
About this version
Opinionated eslint configuration
Place a .npmrc
file in the root of the project:
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@bepower:registry=https://npm.pkg.github.com
and then add the GITHUB_TOKEN
environment variable
Then install the npm package:
$ npm install --save-dev @bepower/eslint-plugin
.eslintrc.json
or "eslintConfig"
property inside package.json
{
"extends": "plugin:@bepower/node",
"parserOptions": {
"project": "./tsconfig.json"
}
}
eslint --fix . --ext .js,.jsx,.ts,.tsx