Dan Abramov does a really good job explaining why and how in 'Lint Like It’s 2015'
For the tl;dr version
// install atom's linter && linter-eslint
apm install linter
apm install linter-eslint
Dan Abramov does a really good job explaining why and how in 'Lint Like It’s 2015'
For the tl;dr version
// install atom's linter && linter-eslint
apm install linter
apm install linter-eslint
import template from './template.js'; | |
const processedTemplate = template({ | |
here: 'hello', | |
alsoHere: 'world', | |
}) |
const CrossOriginLocalStorage = function(currentWindow, iframe, allowedOrigins, onMessage) { | |
this.allowedOrigins = allowedOrigins; | |
let childWindow; | |
// some browser (don't remember which one) throw exception when you try to access | |
// contentWindow for the first time, it works when you do that second time | |
try { | |
childWindow = iframe.contentWindow; | |
} catch(e) { | |
childWindow = iframe.contentWindow; |
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": ["airbnb"], | |
"globals": { | |
"document": false, | |
"escape": false, |