updated to folders in master (#1)

This commit is contained in:
Zac Jones
2018-10-24 11:58:04 -04:00
committed by Kent C. Dodds
parent 4e579627b7
commit 860492ad3f
59 changed files with 8115 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"parserOptions": {
"ecmaVersion": "2018"
},
"extends": ["eslint:recommended"],
"rules": {
"no-console": "off"
},
"env": {
"browser": true
}
}

1
03-configure-prettier/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
node_modules

View File

@@ -0,0 +1,7 @@
node_modules
coverage
dist
build
.build
# etc...

View File

@@ -0,0 +1,12 @@
{
"arrowParens": "avoid",
"bracketSpacing": false,
"jsxBracketSameLine": false,
"printWidth": 80,
"proseWrap": "always",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}

1039
03-configure-prettier/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
{
"name": "static-testing-tools",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"lint": "eslint src",
"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": {
"eslint": "^5.5.0",
"prettier": "^1.14.2"
}
}

View File

@@ -0,0 +1,11 @@
const name = 'Freddy'
typeof name === 'string'
if (!('serviceWorker' in navigator)) {
// you have an old browser :-(
}
const greeting = 'hello'
console.log(`${greeting} world!`)
;[(1, 2, 3)].forEach(x => console.log(x))