Package Exports
- eslint-config-ringcentral
- eslint-config-ringcentral/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-ringcentral) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-config-ringcentral
The eslint sharable config for the RingCentral JavaScript Style Guide and RingCentral React Style Guide
Usage
Install packages
npm install eslint eslint-plugin-import eslint-plugin-react eslint-config-ringcentral eslint-plugin-sonarjs --save-devCreate linter config or edit your own at the root directory of your project
.eslintrc.yml
extends: 'ringcentral'That's all. Run linter via command line
$ ./node_modules/.bin/eslint srcOr specify command in package.json for npm/yarn
$ cat package.json
"scripts": {
"lint": "eslint src"
}then run linter
npm run lint