eslint-config-livehouse
v2.0.0
Published
LIVEhouse coding style rules that extends eslint:recommended and airbnb.
Downloads
6
Readme
Usage
LIVEhouse noders uses babel as compiler for ES2015+, for this intent LIVEhouse noders extends eslint:recommended and airbnb coding style. Also LIVEhouse uses eslint as linter, so you need to install following packages:
- babel-eslint@^6 (you'll need it if you use stuff like class properties, decorators, async/await, types.)
- eslint@^2
- eslint-config-airbnb
- eslint-config-livehouse
Install
# sh
npm install babel-eslint eslint eslint-config-airbnb --save-dev
npm install eslint-config-livehouse --save-dev
Please visit rules for more detail.
Config
Create a file called .eslintrc.yml
and add code as below to get it work:
# .eslintrc.yml
extends:
- 'livehouse/browser' # for browser uses
- 'livehouse/node' # for node uses
# - 'livehouse/tests' # for tests uses, NOT implement yet
- 'livehouse' # whatever
If you need only partial configuration, you can do following below:
# .eslintrc.yml
extends:
- "livehouse/rules/es2015"
- "livehouse/rules/style"
Install IDE/editor plugin
You should install plugin for your IDE or editor.
Please visit http://eslint.org/docs/user-guide/integrations.html for more detail.