Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

A shared eslint-config deviation of `standard` for javascript ES5, ES2015, ES.next and React projects

License

Notifications You must be signed in to change notification settings

bySabi/eslint-config-standard-deviation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-standard-deviation

npm version npm downloads bitHound Overall Score

ESLint shared configuration for javascript ES5, ES2015, ES.next and React projects based on standard shared eslint-config

What is different from standard eslint-config ?

standard shared eslint-config rules are almost fine but we do not like to force us to ...

  • not use semicolon ;
  • put space before function parens function foo ()

![eslint-config-standard-deviation][eslint-config-standard-deviation] [eslint-config-standard-deviation]:./semicolon.jpg

Installation

npm

npm install eslint-config-standard-deviation --save-dev

WITH dependencies

npm install eslint babel-eslint eslint-config-standard eslint-config-standard-react eslint-plugin-react eslint-plugin-promise eslint-plugin-standard --save-dev

OR add easily to projects using eslint-modules-standard-deviation

npm install eslint eslint-modules-standard-deviation --save-dev
Works only in npm 3 and beyond environments

Usage

Add extends to project .eslintrc

{
  "extends": ["standard-deviation"]
}

Add scripts to package.json

"scripts": {
  "lint": "eslint . --ext .js,.jsx",
  "testonly": "echo \"Error: no test specified\" && exit 1",
  "test": "npm run lint && npm run testonly"
}

[optional] enable/disable eslint rules

{
  "extends": ["standard-deviation"],
  "rules": {
    "space-before-function-paren": ["error", "always"]
  }
}

for Javascript ES5 only, use

Projects using eslint-config-standard-deviation

Contributing

  • Documentation improvement
  • Feel free to send any PR

License

ISC

About

A shared eslint-config deviation of `standard` for javascript ES5, ES2015, ES.next and React projects

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published