Skip to content

Commit 0013078

Browse files
authored
chore(dev-deps): upgrade babel, jest, eslint (#1470)
* upgrade babel, jest, eslint * prettier 2 fix & formatting * remove test assets from coverage * codecov CI blocking disabled * upgrade typedoc tooling * remove codecov token
1 parent b8f9af6 commit 0013078

File tree

26 files changed

+1904
-907
lines changed

26 files changed

+1904
-907
lines changed

.codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ coverage:
88
range: "30...100"
99

1010
status:
11-
project: yes
12-
patch: yes
11+
project: no
12+
patch: no
1313
changes: no
1414

1515
flags:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- uses: actions/checkout@v1
99
- uses: bahmutov/npm-install@v1
10-
- run: yarn ci && node_modules/.bin/codecov -t 771ab28f-c3c3-4d96-9409-bbfa79ee904b
10+
- run: yarn ci && node_modules/.bin/codecov
1111
e2e:
1212
name: cypress
1313
runs-on: ubuntu-16.04

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*~
33
.*.haste_cache.*
44
.DS_Store
5+
.secrets
56
npm-debug.log
67
yarn-error.log
78

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"jsxBracketSameLine": true,
33
"singleQuote": true,
44
"trailingComma": "all",
5-
"endOfLine": "lf"
5+
"endOfLine": "lf",
6+
"arrowParens": "avoid"
67
}

examples/graphiql-cdn/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
body: JSON.stringify(graphQLParams),
6464
credentials: 'include',
6565
},
66-
).then(function(response) {
67-
return response.json().catch(function() {
66+
).then(function (response) {
67+
return response.json().catch(function () {
6868
return response.text();
6969
});
7070
});

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module.exports = {
3838
'!**/node_modules/**',
3939
'!**/__tests__/**',
4040
'!**/resources/**',
41+
'!**/test/**',
4142
'!**/examples/**',
4243
'!**/codemirror-graphql/**',
4344
'!**/graphql-language-service-types/**',

package.json

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -56,61 +56,61 @@
5656
"prepublish": "./resources/prepublish.sh"
5757
},
5858
"devDependencies": {
59-
"@babel/cli": "7.8.4",
60-
"@babel/core": "7.8.4",
61-
"@babel/node": "7.8.4",
62-
"@babel/plugin-proposal-class-properties": "7.8.3",
63-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
64-
"@babel/plugin-transform-runtime": "^7.4.4",
65-
"@babel/polyfill": "^7.4.4",
66-
"@babel/preset-env": "7.8.4",
67-
"@babel/preset-flow": "7.8.3",
68-
"@babel/preset-react": "7.8.3",
69-
"@babel/preset-typescript": "7.8.3",
70-
"@babel/register": "^7.4.4",
59+
"@babel/cli": "^7.8.4",
60+
"@babel/core": "^7.9.0",
61+
"@babel/node": "^7.8.7",
62+
"@babel/plugin-proposal-class-properties": "^7.8.3",
63+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
64+
"@babel/plugin-transform-runtime": "^7.9.0",
65+
"@babel/polyfill": "^7.8.7",
66+
"@babel/preset-env": "7.9.5",
67+
"@babel/preset-flow": "7.9.0",
68+
"@babel/preset-react": "7.9.4",
69+
"@babel/preset-typescript": "7.9.0",
70+
"@babel/register": "^7.9.0",
7171
"@commitlint/cli": "^8.3.5",
72-
"@commitlint/config-conventional": "^8.1.0",
73-
"@commitlint/config-lerna-scopes": "^8.1.0",
74-
"@strictsoftware/typedoc-plugin-monorepo": "^0.2.1",
75-
"@testing-library/jest-dom": "^5.1.1",
76-
"@types/codemirror": "^0.0.85",
72+
"@commitlint/config-conventional": "^8.3.4",
73+
"@commitlint/config-lerna-scopes": "^8.3.4",
74+
"@strictsoftware/typedoc-plugin-monorepo": "0.3.1",
75+
"@testing-library/jest-dom": "^5.4.0",
76+
"@types/codemirror": "^0.0.90",
7777
"@types/fetch-mock": "^7.3.2",
78-
"@types/jest": "^25.1.1",
79-
"@types/node": "^13.7.1",
80-
"@typescript-eslint/eslint-plugin": "^2.19.2",
81-
"@typescript-eslint/parser": "^2.18.0",
82-
"babel-eslint": "^10.0.1",
83-
"babel-jest": "^25.1.0",
78+
"@types/jest": "^25.2.1",
79+
"@types/node": "^13.11.1",
80+
"@typescript-eslint/eslint-plugin": "^2.27.0",
81+
"@typescript-eslint/parser": "^2.27.0",
82+
"babel-eslint": "^10.1.0",
83+
"babel-jest": "^25.3.0",
8484
"chai": "4.2.0",
85-
"codecov": "^3.6.4",
86-
"conventional-changelog-conventionalcommits": "^4.1.0",
85+
"codecov": "^3.6.5",
86+
"conventional-changelog-conventionalcommits": "^4.2.3",
8787
"copy": "^0.3.2",
88-
"cross-env": "^7.0.0",
89-
"cypress": "^4.0.2",
88+
"cross-env": "^7.0.2",
89+
"cypress": "^4.3.0",
9090
"eslint": "^6.8.0",
91-
"eslint-config-prettier": "6.10.0",
92-
"eslint-plugin-babel": "5.3.0",
93-
"eslint-plugin-cypress": "^2.10.1",
94-
"eslint-plugin-flowtype": "4.6.0",
95-
"eslint-plugin-import": "^2.20.0",
96-
"eslint-plugin-jest": "^23.1.1",
91+
"eslint-config-prettier": "^6.10.1",
92+
"eslint-plugin-babel": "^5.3.0",
93+
"eslint-plugin-cypress": "^2.10.3",
94+
"eslint-plugin-flowtype": "4.7.0",
95+
"eslint-plugin-import": "^2.20.2",
96+
"eslint-plugin-jest": "^23.8.2",
9797
"eslint-plugin-prefer-object-spread": "1.2.1",
98-
"eslint-plugin-react": "7.18.3",
98+
"eslint-plugin-react": "7.19.0",
9999
"fetch-mock": "6.5.2",
100100
"flow-bin": "^0.119.1",
101101
"graphql": "^15.0.0",
102-
"husky": "^4.0.7",
103-
"jest": "^25.1.0",
104-
"jest-environment-jsdom": "^25.1.0",
105-
"jest-environment-jsdom-global": "^1.2.0",
106-
"lerna": "^3.16.4",
107-
"lint-staged": "^10.0.7",
108-
"mkdirp": "^1.0.3",
109-
"mocha": "7.0.1",
110-
"prettier": "^1.18.2",
102+
"husky": "^4.2.3",
103+
"jest": "^25.3.0",
104+
"jest-environment-jsdom": "^25.3.0",
105+
"jest-environment-jsdom-global": "^2.0.2",
106+
"lerna": "^3.20.2",
107+
"lint-staged": "^10.1.2",
108+
"mkdirp": "^1.0.4",
109+
"mocha": "7.1.1",
110+
"prettier": "^2.0.4",
111111
"rimraf": "^3.0.2",
112-
"ts-jest": "^25.2.0",
113-
"typedoc": "^0.15.1",
114-
"typescript": "^3.6.3"
112+
"ts-jest": "^25.3.1",
113+
"typedoc": "0.17.4",
114+
"typescript": "^3.8.3"
115115
}
116116
}

packages/codemirror-graphql/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
"graphql-language-service-parser": "^1.6.0-alpha.3"
5555
},
5656
"devDependencies": {
57-
"chai": "4.1.1",
57+
"chai": "4.2.0",
5858
"chai-subset": "1.6.0",
59-
"codemirror": "^5.28.0",
60-
"cross-env": "^7.0.0",
59+
"codemirror": "^5.52.2",
60+
"cross-env": "^7.0.2",
6161
"graphql": "15.0.0",
6262
"jsdom": "^16.1.0",
63-
"mocha": "7.0.0",
64-
"nyc": "^15.0.0",
63+
"mocha": "7.1.1",
64+
"nyc": "^15.0.1",
6565
"rimraf": "^3.0.0",
6666
"sane": "2.0.0"
6767
}

packages/codemirror-graphql/resources/bootJSDOM.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ function bootJSDOM() {
1919
global.document = win.document;
2020
global.window = win;
2121

22-
global.document.createRange = function() {
22+
global.document.createRange = function () {
2323
return {
24-
setEnd: function() {},
25-
setStart: function() {},
26-
getClientRects: function() {
24+
setEnd: function () {},
25+
setStart: function () {},
26+
getClientRects: function () {
2727
return { top: 0, bottom: 0, left: 0, right: 0 };
2828
},
29-
getBoundingClientRect: function() {
29+
getBoundingClientRect: function () {
3030
return { right: 0 };
3131
},
3232
};

packages/codemirror-graphql/resources/mochaBootload.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ const win = doc.window;
3030
global.document = win.document;
3131
global.window = win;
3232

33-
global.document.createRange = function() {
33+
global.document.createRange = function () {
3434
return {
35-
setEnd: function() {},
36-
setStart: function() {},
37-
getClientRects: function() {
35+
setEnd: function () {},
36+
setStart: function () {},
37+
getClientRects: function () {
3838
return { top: 0, bottom: 0, left: 0, right: 0 };
3939
},
40-
getBoundingClientRect: function() {
40+
getBoundingClientRect: function () {
4141
return { right: 0 };
4242
},
4343
};

0 commit comments

Comments
 (0)