Package Exports
- eslint-config-airbnb-standard
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-airbnb-standard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Airbnb+ JavaScript Standard Style
ESLint on steroids (extends "airbnb" + "standard" configs). Global installation!
It uses original Airbnb Style config extended with JavaScript Standard Style config (with semicolons).
See airbnb/javascript and standardjs for more information.
Compare configs.
Installation
Install it globally:
npm install --global eslint-config-airbnb-standard
You can now run feature packed eslint
from any directory:
eslint -v
Create .eslintrc
file in your project. Setup your IDE / Editor. Be smart!
WebStorm
File | Settings | Languages and Frameworks | JavaScript | Code Quality Tools | ESLint
Sublime Text 3
Install this package globally
Go to: Preferences -> Package Control -> install package
Install SublimeLinter
Install SublimeLinter-contrib-eslint
Run:
npm bin -g
... and copy the path
Go to: Tools -> SublimeLinter -> Open User Settings
Paste the path to NodeJS installation folder inside "paths" for your OS, for example:
"paths": { "linux": [ "~/.nvm/versions/node/v8.1.2/bin" ], "osx": [], "windows": ["%AppData%\\npm"] },
Create
.eslintrc
file inside your working project:{ "extends": ["airbnb-standard"] }
Go to Tools -> SublimeLinter -> Lint this view
You can switch to squiggly underline mark style from Tools.
Have fun!
Custom Config
You can turn off semicolons in .eslintrc
(semi -> "never") for your project:
{
"extends": ["airbnb-standard"],
"rules": {
"semi": ["error", "never"]
}
}
I want that Sublime Text
You can setup full featured nice black Sublime Text 3 from this repo: sublime-text-3-settings