Compare commits
18 Commits
step-2
...
tjs/step-0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb1aa446f5 | ||
|
|
b6add202df | ||
|
|
544746d064 | ||
|
|
d0c1fa44e4 | ||
|
|
cd5939daf8 | ||
|
|
cc722afcb2 | ||
|
|
571fc946b8 | ||
|
|
898876d0d2 | ||
|
|
9c51bd92fa | ||
|
|
f10cfb98ce | ||
|
|
860492ad3f | ||
|
|
4e579627b7 | ||
|
|
053c5de689 | ||
|
|
d43c846d12 | ||
|
|
437ed30ddb | ||
|
|
94216f47e8 | ||
|
|
4f2fde56e2 | ||
|
|
c077931399 |
12
.babelrc
Normal file
12
.babelrc
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"targets": {
|
||||
"node": "10"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
@@ -1,10 +1,14 @@
|
||||
{
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "2018"
|
||||
"ecmaVersion": 2019,
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"extends": ["eslint:recommended"],
|
||||
"rules": {
|
||||
"no-console": "off"
|
||||
"strict": ["error", "never"]
|
||||
},
|
||||
"env": {
|
||||
"browser": true
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
node_modules
|
||||
dist
|
||||
|
||||
3690
package-lock.json
generated
3690
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@@ -1,15 +1,16 @@
|
||||
{
|
||||
"name": "static-testing-tools",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
"author": "Kent C. Dodds (http://kentcdodds.com/)",
|
||||
"license": "GPLv3",
|
||||
"scripts": {
|
||||
"lint": "eslint src"
|
||||
"build": "babel src --out-dir dist",
|
||||
"lint": "eslint --ignore-path .gitignore ."
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"eslint": "^5.5.0"
|
||||
"@babel/cli": "^7.7.0",
|
||||
"@babel/core": "^7.7.2",
|
||||
"@babel/preset-env": "^7.7.1",
|
||||
"eslint": "^6.6.0"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
const name = 'Freddy'
|
||||
typeof name === 'string'
|
||||
const username = 'freddy'
|
||||
typeof username === 'string'
|
||||
|
||||
if (!('serviceWorker' in navigator)) {
|
||||
// you have an old browser :-(
|
||||
@@ -7,5 +7,4 @@ if (!('serviceWorker' in navigator)) {
|
||||
|
||||
const greeting = 'hello'
|
||||
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