install, config, run

This commit is contained in:
Kent C. Dodds
2018-09-14 20:12:14 -06:00
parent a3f32f5b01
commit 82342de51c
4 changed files with 1052 additions and 8 deletions

12
.eslintrc Normal file
View File

@@ -0,0 +1,12 @@
{
"parserOptions": {
"ecmaVersion": "2018"
},
"extends": ["eslint:recommended"],
"rules": {
"no-console": "off"
},
"env": {
"browser": true
}
}

1030
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,9 +3,13 @@
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": {}, "scripts": {
"lint": "eslint src"
},
"keywords": [], "keywords": [],
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)", "author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
"license": "MIT", "license": "MIT",
"devDependencies": {} "devDependencies": {
} "eslint": "^5.5.0"
}
}

View File

@@ -1,11 +1,11 @@
const name = 'Freddy' const name = 'Freddy'
typeof name === 'strng' typeof name === 'string'
if (!'serviceWorker' in navigator) { if (!('serviceWorker' in navigator)) {
// you have an old browser :-( // you have an old browser :-(
} }
const greeting = 'hello' const greeting = 'hello'
console.log('${greting} world!') console.log(`${greeting} world!`)
[(1, 2, 3)].forEach(x => console.log(x)) ;[(1, 2, 3)].forEach(x => console.log(x))