Skip to content

ravdocs/eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eslint Configuration

A set of coding standard settings for use with https://eslint.org/. Eslint is source code checking framework used to enforce coding standards.

Usage

To use this npm module:

  1. Install
  2. Configure Visual Studio Code

Install

npm install --save @ravdocs/eslint;

Configure Visual Studio Code

  1. Open Settings.

    • OS X: ,
    • Linux: CTRL,
  2. Add to USER SETTINGS:

    "eslint.autoFixOnSave": true,
    "eslint.options": {
        "rulePaths": [
            "node_modules/@ravdocs/eslint/rules"
        ]
    },
  3. Create .eslintrc.js in the top-level directory of the repo (next to package.json) with this content:

    	'use strict';
    
    
    	module.exports = require('@ravdocs/eslint').configs.backend;
  4. 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;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •