Skip to content

gearboxdesign/gearbox-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gearbox Design - ESLint

These rules dictate the JavaScript linting standards endorsed by Gearbox Design.

Installation

  1. Install Node dependencies

     npm install / yarn install
    

Usage

  1. Ensure an initial .eslintrc.js exists in the target directory with appropriate configuration options:

    Example '.eslintrc.js'

    module.exports = {
    	'extends': [
    		'gearbox-eslint',
    		// Additional rule sets...
    		'gearbox-eslint/rules/es6'
    	].map(require.resolve),
    	'env': {
    		// Environment settings...
    		'browser': true
    	},
    	// Local override rules...
    	'rules': {}
    };
  2. Run eslint standalone (provided eslint is installed globally) with:

     eslint <DIRECTORY>
    

Or via other workflow tooling designed to interface with the eslint API.

Links

About

Gearbox Design eslint rules.

Resources

Stars

Watchers

Forks

Packages

No packages published