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