JSPM

  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q72375F
  • License MIT

ESLint config for the RingCentral style guide

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-dev

Create 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 src

Or specify command in package.json for npm/yarn

$ cat package.json

  "scripts": {
    "lint": "eslint src"
  }

then run linter

npm run lint