1.0.3 • Published 7 years ago
pb-style v1.0.3
JavaScript Style Guide
This directory contains Point Blue's JavaScript code style guidelines.
Description
This style guideline is based on Google's JS Style Guide.
ESLint is the linter we use.
Setup
Install ESLint globaly: sudo npm i -g eslint
PhpStorm
File > Settings > Languages & Frameworks > JavaScript > Code Quality Tools
- enable ESLint and disable all other linters
- in ESLint settings, set 'ESLint package' option to:
/usr/local/lib/node_modules/eslint
(or your path to eslint dir)
Project Config
If your project doesn't already have an .eslintrc.js file, add default .eslintrc.js to project root