Skip to content

Commit e2fa6f7

Browse files
author
Kent C. Dodds
committed
feat: upgrade all deps
This also prevents the lint script from linting ts files which solves some frustrations I have had previously. Eventually we need to support TS though.
1 parent 3b04df6 commit e2fa6f7

File tree

3 files changed

+34
-37
lines changed

3 files changed

+34
-37
lines changed

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,58 +34,58 @@
3434
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
3535
"license": "MIT",
3636
"dependencies": {
37-
"@babel/cli": "^7.4.4",
38-
"@babel/core": "^7.4.4",
39-
"@babel/plugin-proposal-class-properties": "^7.4.4",
40-
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
41-
"@babel/plugin-transform-runtime": "^7.4.4",
42-
"@babel/preset-env": "^7.4.4",
37+
"@babel/cli": "^7.5.0",
38+
"@babel/core": "^7.5.4",
39+
"@babel/plugin-proposal-class-properties": "^7.5.0",
40+
"@babel/plugin-transform-modules-commonjs": "^7.5.0",
41+
"@babel/plugin-transform-runtime": "^7.5.0",
42+
"@babel/preset-env": "^7.5.4",
4343
"@babel/preset-flow": "^7.0.0",
4444
"@babel/preset-react": "^7.0.0",
45-
"@babel/runtime": "^7.4.4",
45+
"@babel/runtime": "^7.5.4",
4646
"arrify": "^2.0.1",
4747
"babel-core": "^7.0.0-0",
4848
"babel-jest": "^24.8.0",
49-
"babel-plugin-macros": "^2.5.1",
49+
"babel-plugin-macros": "^2.6.1",
5050
"babel-plugin-minify-dead-code-elimination": "^0.5.0",
5151
"babel-plugin-module-resolver": "^3.1.1",
5252
"babel-plugin-transform-inline-environment-variables": "^0.4.0",
5353
"babel-plugin-transform-react-remove-prop-types": "^0.4.21",
54-
"browserslist": "^4.6.0",
55-
"concurrently": "^4.1.0",
54+
"browserslist": "^4.6.4",
55+
"concurrently": "^4.1.1",
5656
"cross-env": "^5.1.4",
5757
"cross-spawn": "^6.0.5",
5858
"doctoc": "^1.4.0",
59-
"eslint": "^5.16.0",
60-
"eslint-config-kentcdodds": "^14.3.2",
61-
"eslint-config-prettier": "^4.2.0",
59+
"eslint": "^6.0.1",
60+
"eslint-config-kentcdodds": "^14.3.3",
61+
"eslint-config-prettier": "^6.0.0",
6262
"glob": "^7.1.4",
63-
"husky": "^2.3.0",
63+
"husky": "^3.0.0",
6464
"is-ci": "^2.0.0",
6565
"jest": "^24.8.0",
6666
"jest-watch-typeahead": "^0.3.1",
67-
"lint-staged": "^8.1.6",
67+
"lint-staged": "^9.2.0",
6868
"lodash.camelcase": "^4.3.0",
6969
"lodash.has": "^4.5.2",
7070
"lodash.omit": "^4.5.0",
7171
"mkdirp": "^0.5.1",
72-
"prettier": "^1.17.1",
72+
"prettier": "^1.18.2",
7373
"read-pkg-up": "^6.0.0",
74-
"resolve": "^1.10.1",
74+
"resolve": "^1.11.1",
7575
"rimraf": "^2.6.2",
76-
"rollup": "^1.11.3",
77-
"rollup-plugin-babel": "^4.0.0",
78-
"rollup-plugin-commonjs": "^9.3.4",
76+
"rollup": "^1.16.7",
77+
"rollup-plugin-babel": "^4.3.3",
78+
"rollup-plugin-commonjs": "^10.0.1",
7979
"rollup-plugin-json": "^4.0.0",
8080
"rollup-plugin-node-builtins": "^2.1.2",
8181
"rollup-plugin-node-globals": "^1.4.0",
82-
"rollup-plugin-node-resolve": "^4.2.4",
82+
"rollup-plugin-node-resolve": "^5.2.0",
8383
"rollup-plugin-replace": "^2.2.0",
84-
"rollup-plugin-size-snapshot": "^0.8.0",
85-
"rollup-plugin-terser": "^4.0.4",
86-
"semver": "^6.0.0",
84+
"rollup-plugin-size-snapshot": "^0.9.0",
85+
"rollup-plugin-terser": "^5.1.1",
86+
"semver": "^6.2.0",
8787
"which": "^1.3.0",
88-
"yargs-parser": "^13.1.0"
88+
"yargs-parser": "^13.1.1"
8989
},
9090
"eslintConfig": {
9191
"extends": [

src/config/__tests__/lintstagedrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ afterEach(() => {
1212
test('includes format and git add when not opted out', () => {
1313
utilsMock.isOptedOut.mockImplementation((key, t, f) => f)
1414
const config = require('../lintstagedrc')
15-
const jsLinter = getJsLinter(config.linters)
15+
const jsLinter = getJsLinter(config)
1616
expect(hasFormat(jsLinter)).toBe(true)
1717
expect(hasGitAdd(jsLinter)).toBe(true)
1818
})
1919

2020
test('does not include format and git add when opted out', () => {
2121
utilsMock.isOptedOut.mockImplementation((key, t) => t)
2222
const config = require('../lintstagedrc')
23-
const jsLinter = getJsLinter(config.linters)
23+
const jsLinter = getJsLinter(config)
2424
expect(hasFormat(jsLinter)).toBe(false)
2525
expect(hasGitAdd(jsLinter)).toBe(false)
2626
})

src/config/lintstagedrc.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ const kcdScripts = resolveKcdScripts()
44
const doctoc = resolveBin('doctoc')
55

66
module.exports = {
7-
concurrent: false,
8-
linters: {
9-
'README.md': [`${doctoc} --maxlevel 3 --notitle`, 'git add'],
10-
'*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)': [
11-
isOptedOut('autoformat', null, `${kcdScripts} format`),
12-
`${kcdScripts} lint`,
13-
`${kcdScripts} test --findRelatedTests`,
14-
isOptedOut('autoformat', null, 'git add'),
15-
].filter(Boolean),
16-
},
7+
'README.md': [`${doctoc} --maxlevel 3 --notitle`, 'git add'],
8+
'*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)': [
9+
isOptedOut('autoformat', null, `${kcdScripts} format`),
10+
`${kcdScripts} lint`,
11+
`${kcdScripts} test --findRelatedTests`,
12+
isOptedOut('autoformat', null, 'git add'),
13+
].filter(Boolean),
1714
}

0 commit comments

Comments
 (0)