1 Commits

Author SHA1 Message Date
Kent C. Dodds
82342de51c install, config, run 2018-09-14 21:49:25 -06:00
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",
"description": "",
"main": "index.js",
"scripts": {},
"scripts": {
"lint": "eslint src"
},
"keywords": [],
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
"license": "MIT",
"devDependencies": {}
"devDependencies": {
"eslint": "^5.5.0"
}
}

View File

@@ -1,11 +1,11 @@
const name = 'Freddy'
typeof name === 'strng'
typeof name === 'string'
if (!'serviceWorker' in navigator) {
if (!('serviceWorker' in navigator)) {
// you have an old browser :-(
}
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))