Skip to content

Typescript, Angular and Mocha configs based on Google's JS formatting rules, with some extra flavor

Notifications You must be signed in to change notification settings

6RiverSystems/eslint-config-6river

Repository files navigation

eslint-config-6river

  1. npm i -D eslint-config-6river
  2. Add one of the following to .eslintrc.json:
  • TypeScript: {"extends": "6river/typescript"}
  • JavaScript: {"extends": "6river"}
  • mixed: {"extends": "6river/typescript"}
  • Mocha tests: {"extends": "6river/mocha"}
  • AngularJS: {"extends": "6river/angular"}
  1. Add one of the following to the scripts property in package.json:
    • TypeScript: "lint": "eslint --ext .ts ."
    • JavaScript: "lint": "eslint --ext .js ."
    • mixed: "lint": "eslint --ext .js,ts ."
  2. npm run lint

About

Typescript, Angular and Mocha configs based on Google's JS formatting rules, with some extra flavor

Topics

Resources

Stars

Watchers

Forks