1.2.1 • Published 6 years ago

eslint-plugin-chronobank-react v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

eslint-plugin-chronobank

ESLint plugin for the ChronoBank related projects.

Usage

  1. npm install ChronoBank/eslint-plugin-chronobank-react --save-dev
  2. Create a file named .eslintrc in your project:
{
  extends: ['plugin:chronobank-react/recommended']
}
  1. Add to your package.json (you'll probably need to change src and specs folders to your own):
"scripts": {
  ...
  "lint": "./node_modules/eslint/bin/eslint.js --ext .js,.jsx --fix src specs",
  "lint:test": "./node_modules/eslint/bin/eslint.js --ext .js,.jsx src specs",
  "test": "npm run lint:test && jest --useStderr --forceExit --runInBand",
  1. Use npm test before any commit and in your travis.yml:
script:
  ...
  - npm test -- --coverage

after_script:
  - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

Rules

Extends

This package extends eslint:recommended, plugin:react/recommended and plugin:chronobank/recommended

Overrides

This package overrides rules:

OverrideDescriptionReason
'jsx-quotes': [2, 'prefer-single']linkUse single quotes in JSX

License

GPL-3.0