Compare commits
2 Commits
tjs/step-0
...
tjs/step-0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb1aa446f5 | ||
|
|
b6add202df |
@@ -6,13 +6,9 @@
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"extends": ["eslint:recommended"],
|
||||
"rules": {
|
||||
"strict": ["error", "never"],
|
||||
"valid-typeof": "error",
|
||||
"no-unsafe-negation": "error",
|
||||
"no-unused-vars": "error",
|
||||
"no-unexpected-multiline": "error",
|
||||
"no-undef": "error"
|
||||
"strict": ["error", "never"]
|
||||
},
|
||||
"env": {
|
||||
"browser": true
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"author": "Kent C. Dodds (http://kentcdodds.com/)",
|
||||
"license": "GPLv3",
|
||||
"scripts": {
|
||||
"build": "babel src --out-dir dist"
|
||||
"build": "babel src --out-dir dist",
|
||||
"lint": "eslint --ignore-path .gitignore ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.7.0",
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
'use strict'
|
||||
|
||||
const username = 'freddy'
|
||||
typeof username === 'strng'
|
||||
typeof username === 'string'
|
||||
|
||||
if (!'serviceWorker' in navigator) {
|
||||
if (!('serviceWorker' in navigator)) {
|
||||
// you have an old browser :-(
|
||||
}
|
||||
|
||||
const greeting = 'hello'
|
||||
console.log('${greeting} world!')
|
||||
[1, 2, 3].forEach(x => console.log(x))
|
||||
console.log(`${greeting} world!`)
|
||||
;[1, 2, 3].forEach(x => console.log(x))
|
||||
|
||||
Reference in New Issue
Block a user