0.0.3 • Published 8 years ago
@travelab/eslint-plugin-tl2 v0.0.3
eslint-plugin-tl2
Code styleguide for Travelab 2 frontend
Installation
Install ESLint and our plugin:
$ npm i -D eslint @travelab/eslint-plugin-tl2
Note: If you installed ESLint globally (using the -g
flag) then you must also install @travelab/eslint-plugin-tl2
, babel-eslint
and eslint-plugin-react
globally.
Usage
Add plugin:tl2/recommended
to the extends section of your .eslintrc
configuration file:
{
"extends": [
"plugin:tl2/recommended"
]
}
And now all rules for code styleguide are configured include eslint rules and eslint-plugin-react rules
Custom Rules
- blankline-around-block-startline: enforce blankline before block statement and on first line in body of block