Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 641 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 641 Bytes

eslint-config-tucows

Our JavaScript style

This JS style is our base style for all our modern JS projects. It assumes mixed Node/Browser code and the use of ES6 with Babel. It also requires babel-eslint as the parser.

Detailed explanation of the rules.

Installation

npm install --save-dev eslint-config-tucows

Then create an eslint config file in your project that contains:

 "extends": [
     "eslint-config-tucows"
 ]

Recomended script line in package.json (This requires npm >= 4)

"lint": "npx eslint **/*.js --fix"