A set of coding standard settings for use with https://eslint.org/. Eslint is source code checking framework used to enforce coding standards.
To use this npm module:
npm install --save @ravdocs/eslint;
-
Open
Settings
.- OS X: ⌘,
- Linux: CTRL,
-
Add to
USER SETTINGS
:"eslint.autoFixOnSave": true, "eslint.options": { "rulePaths": [ "node_modules/@ravdocs/eslint/rules" ] },
-
Create
.eslintrc.js
in the top-level directory of the repo (next topackage.json
) with this content:'use strict'; module.exports = require('@ravdocs/eslint').configs.backend;
-
Create another
.eslintrc.js
in the directory containing frontend files (e.g.,public/.eslintrc.js
) with this content:'use strict'; module.exports = require('@ravdocs/eslint').configs.frontend;