eslint-config-6river

ESLint shareable config for the 6RS style

Usage no npm install needed!

<script type="module">
  import eslintConfig6river from 'https://cdn.skypack.dev/eslint-config-6river';
</script>

README

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