Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82342de51c |
12
.eslintrc
Normal file
12
.eslintrc
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "2018"
|
||||
},
|
||||
"extends": ["eslint:recommended"],
|
||||
"rules": {
|
||||
"no-console": "off"
|
||||
},
|
||||
"env": {
|
||||
"browser": true
|
||||
}
|
||||
}
|
||||
1030
package-lock.json
generated
1030
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user