12 Commits

Author SHA1 Message Date
Kent C. Dodds
544746d064 eslint: config 2019-11-12 17:22:31 -07:00
Kent C. Dodds
d0c1fa44e4 init 2019-11-12 17:19:31 -07:00
Kent C. Dodds
cd5939daf8 I think this is it 2019-07-31 20:24:08 -06:00
Kent C. Dodds
cc722afcb2 progress 2019-07-31 20:20:48 -06:00
Kent C. Dodds
571fc946b8 some progress made 2019-07-31 17:10:32 -06:00
Kent C. Dodds
898876d0d2 fix husky 2019-07-31 12:54:29 -06:00
Kent C. Dodds
9c51bd92fa improve things 2019-07-31 12:53:54 -06:00
Kent C. Dodds
f10cfb98ce progress 2019-07-31 12:51:37 -06:00
Zac Jones
860492ad3f updated to folders in master (#1) 2018-10-24 09:58:04 -06:00
Kent C. Dodds
4e579627b7 lint-staged 2018-09-14 22:16:10 -06:00
Kent C. Dodds
053c5de689 husky 2018-09-14 22:14:43 -06:00
Kent C. Dodds
d43c846d12 flow all the things 2018-09-14 22:13:35 -06:00
8 changed files with 3382 additions and 403 deletions

12
.babelrc Normal file
View File

@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "10"
}
}
]
]
}

View File

@@ -1,10 +1,18 @@
{
"parserOptions": {
"ecmaVersion": "2018"
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["eslint:recommended", "eslint-config-prettier"],
"rules": {
"no-console": "off"
"strict": ["error", "never"],
"valid-typeof": "error",
"no-unsafe-negation": "error",
"no-unused-vars": "error",
"no-unexpected-multiline": "error",
"no-undef": "error"
},
"env": {
"browser": true

1
.gitignore vendored
View File

@@ -1 +1,2 @@
node_modules
dist

View File

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

View File

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

3699
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +1,15 @@
{
"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",
"format": "npm run prettier -- --write",
"prettier": "prettier \"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)\"",
"validate": "npm run lint && npm run prettier -- --list-different"
"build": "babel src --out-dir dist"
},
"keywords": [],
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
"license": "MIT",
"devDependencies": {
"eslint": "^5.5.0",
"eslint-config-prettier": "^3.0.1",
"prettier": "^1.14.2"
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/preset-env": "^7.7.1",
"eslint": "^6.6.0"
}
}

View File

@@ -1,11 +1,12 @@
const name = 'Freddy'
typeof name === 'string'
'use strict'
if (!('serviceWorker' in navigator)) {
const username = 'freddy'
typeof username === 'strng'
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))