Skip to content

Commit 3c70053

Browse files
authored
feat: upgrade packages (#374)
1 parent aada365 commit 3c70053

File tree

5 files changed

+2453
-1032
lines changed

5 files changed

+2453
-1032
lines changed

.babelrc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
{
22
"presets": [
33
[
4-
"env",
4+
"@babel/env",
55
{
66
"targets": {
7-
"node": true
7+
"node": "current"
88
}
99
}
10-
],
11-
"stage-2"
10+
]
1211
],
1312
"env": {
1413
"test": {
15-
"plugins": [
16-
"rewire"
17-
]
14+
"plugins": ["rewire"]
1815
}
1916
}
2017
}

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ module.exports = {
22
extends: ['algolia', 'algolia/jest'],
33
rules: {
44
'valid-jsdoc': 'off',
5+
'import/extensions': ['error', 'ignorePackages'],
56
},
67
};

package.json

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"test": "jest && eslint .",
1313
"test:watch": "jest --watchAll --no-watchman",
1414
"format": "prettier --write **/*.{js,md,json}",
15-
"doctoc": "doctoc --notitle --maxlevel 3 README.md",
16-
"precommit": "lint-staged"
15+
"doctoc": "doctoc --notitle --maxlevel 3 README.md"
1716
},
1817
"lint-staged": {
1918
"*.js": [
@@ -35,11 +34,11 @@
3534
"babel-preset-env": "1.7.0",
3635
"babel-preset-stage-2": "6.24.1",
3736
"bunyan": "1.8.12",
38-
"bunyan-debug-stream": "1.1.1",
39-
"dotenv": "6.2.0",
37+
"bunyan-debug-stream": "2.0.0",
38+
"dotenv": "8.0.0",
4039
"escape-html": "1.0.3",
4140
"got": "9.6.0",
42-
"gravatar-url": "2.0.0",
41+
"gravatar-url": "3.0.1",
4342
"hosted-git-info": "2.7.1",
4443
"lodash": "4.17.15",
4544
"ms": "2.1.2",
@@ -52,25 +51,28 @@
5251
"truncate-utf8-bytes": "1.0.2"
5352
},
5453
"devDependencies": {
55-
"babel-eslint": "8.2.6",
54+
"@babel/core": "7.5.5",
55+
"@babel/preset-env": "7.5.5",
56+
"babel-eslint": "10.0.2",
57+
"babel-jest": "24.8.0",
5658
"babel-plugin-rewire": "1.2.0",
5759
"doctoc": "1.4.0",
58-
"eslint": "5.16.0",
59-
"eslint-config-algolia": "13.1.0",
60-
"eslint-config-prettier": "2.10.0",
60+
"eslint": "6.1.0",
61+
"eslint-config-algolia": "13.4.0",
62+
"eslint-config-prettier": "6.0.0",
6163
"eslint-import-resolver-webpack": "0.11.1",
6264
"eslint-plugin-import": "2.18.2",
6365
"eslint-plugin-jasmine": "2.10.1",
6466
"eslint-plugin-jest": "22.14.1",
65-
"eslint-plugin-prettier": "2.7.0",
67+
"eslint-plugin-prettier": "3.1.0",
6668
"eslint-plugin-react": "7.14.3",
67-
"husky": "0.14.3",
68-
"jest": "23.6.0",
69-
"lint-staged": "7.3.0",
69+
"husky": "3.0.2",
70+
"jest": "24.8.0",
71+
"lint-staged": "9.2.1",
7072
"pre-commit": "1.2.2",
71-
"prettier": "1.14.3",
73+
"prettier": "1.18.2",
7274
"renovate-config-algolia": "2.0.2",
73-
"validator": "10.11.0"
75+
"validator": "11.1.0"
7476
},
7577
"engines": {
7678
"node": "12"
@@ -80,5 +82,10 @@
8082
"node_modules",
8183
"lib"
8284
]
85+
},
86+
"husky": {
87+
"hooks": {
88+
"pre-commit": "lint-staged"
89+
}
8390
}
8491
}

src/createStateManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ let currentState;
1111
export default algoliaIndex => ({
1212
check() {
1313
if (c.seq !== null) return this.reset();
14-
return this.get().then(
15-
state => (state === undefined ? this.reset() : state)
14+
return this.get().then(state =>
15+
state === undefined ? this.reset() : state
1616
);
1717
},
1818
get() {

0 commit comments

Comments
 (0)