Skip to content

Commit

Permalink
Breaking: Upgrade TS, RxJS, Babel, ESLint & TSLint (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi authored Sep 11, 2018
1 parent 68789ff commit 50fb428
Show file tree
Hide file tree
Showing 11 changed files with 428 additions and 1,226 deletions.
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
],
"editor.tabSize": 2,
"editor.formatOnSave": true,
"[json]": {
"editor.formatOnSave": false
},
"typescript.implementationsCodeLens.enabled": true,
"typescript.referencesCodeLens.enabled": true,
"files.exclude": {
Expand All @@ -27,5 +24,8 @@
"**/tslint.json": "jsonc",
"**/.eslintrc.json": "jsonc",
"**/.prettierignore": "gitignore"
},
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}
9 changes: 7 additions & 2 deletions babel/node/.babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"presets": [
"@babel/stage-3",
[
"@babel/env",
{
Expand All @@ -11,7 +10,13 @@
}
]
],
"plugins": ["@babel/transform-runtime"],
"plugins": [
"@babel/transform-runtime",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
["@babel/plugin-proposal-class-properties", { "loose": false }],
"@babel/plugin-proposal-json-strings"
],
"sourceMap": "both",
"retainLines": true
}
19 changes: 11 additions & 8 deletions clown/babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
}
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.46",
"@babel/polyfill": "^7.0.0-beta.46"
"@babel/runtime": "^7.0.0",
"@babel/polyfill": "^7.0.0"
},
"resolutions": {
"babel-core": "^7.0.0-bridge.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.46",
"@babel/core": "^7.0.0-beta.46",
"@babel/node": "^7.0.0-beta.46",
"@babel/preset-env": "^7.0.0-beta.46",
"@babel/preset-stage-3": "^7.0.0-beta.46",
"@babel/plugin-transform-runtime": "^7.0.0-beta.46"
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/node": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0"
}
}
3 changes: 3 additions & 0 deletions clown/common/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
],
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"files.associations": {
"**/.babelrc": "jsonc",
"**/.babelrc.json": "jsonc",
Expand Down
22 changes: 11 additions & 11 deletions clown/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
"devDependencies": {
"@hollowverse/validate-filenames": "^3.0.2",
"husky": "^1.0.0-rc.1",
"prettier": "^1.13.5",
"yarnhook": "^0.2.0",
"lint-staged": "^7.0.5",
"babel-eslint": "^8.2.2",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"npm-run-all": "^4.1.2"
"prettier": "^1.14.2",
"yarnhook": "^0.3.0",
"lint-staged": "^7.2.2",
"babel-eslint": "^9.0.0",
"eslint": "^5.5.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"npm-run-all": "^4.1.3"
}
}
7 changes: 3 additions & 4 deletions clown/graphqlClient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"app/graphql/schema": "apollo-codegen introspect-schema ${API_ENDPOINT:-https://api.hollowverse.com/graphql} --output ./graphqlSchema.json"
},
"resolutions": {
"graphql": "^0.13.2"
"graphql": "^14.0.2"
},
"devDependencies": {
"apollo-codegen": "^0.19.1",
"graphql": "^0.13.2",
"graphql-cli": "^2.16.3",
"apollo-codegen": "^0.20.2",
"graphql": "^14.0.2",
"eslint-plugin-graphql": "^2.1.1",
"ts-graphql-plugin": "^1.1.2"
}
Expand Down
9 changes: 5 additions & 4 deletions clown/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
]
},
"devDependencies": {
"@types/jest": "^23.1.1",
"jest": "^23.1.0",
"ts-jest": "^22.4.6",
"eslint-plugin-jest": "^21.17.0"
"@types/jest": "^23.3.1",
"jest": "^23.5.0",
"ts-jest": "^23.1.4",
"babel-jest": "^23.4.2",
"eslint-plugin-jest": "^21.22.0"
}
}
6 changes: 3 additions & 3 deletions clown/rxjs/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"dependencies": {
"rxjs": "^6.0.0"
"rxjs": "^6.3.2"
},
"devDependencies": {
"rxjs-tslint-rules": "^4.0.0",
"rxjs-compat": "^6.0.0"
"rxjs-tslint-rules": "^4.8.0",
"rxjs-compat": "^6.3.2"
}
}
12 changes: 6 additions & 6 deletions clown/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
},
"devDependencies": {
"eslint-plugin-typescript": "^0.12.0",
"typescript": "^2.9.2",
"typescript": "^3.0.3",
"tslint-language-service": "^0.9.9",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.8.0",
"tslint-eslint-rules": "^5.3.1",
"tslint-microsoft-contrib": "^5.0.3",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-microsoft-contrib": "^5.2.1",
"tslint-react": "^3.6.0",
"typescript-eslint-parser": "^16.0.0",
"typescript-eslint-parser": "^18.0.0",
"npm-run-all": "^4.1.3"
}
}
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,21 @@
"@commitlint/cli": "^6.1.3",
"@hollowverse/clown": "^3.1.1",
"@hollowverse/validate-filenames": "^3.0.2",
"babel-eslint": "^8.2.2",
"babel-eslint": "^9.0.0",
"del-cli": "^1.1.0",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"eslint": "^5.5.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-typescript": "^0.11.0",
"husky": "^1.0.0-rc.1",
"lint-staged": "^7.0.5",
"npm-run-all": "^4.1.2",
"prettier": "^1.13.5",
"lint-staged": "^7.2.2",
"npm-run-all": "^4.1.3",
"prettier": "^1.14.2",
"semantic-release": "^15.1.5",
"typescript": "^2.7.2",
"yarnhook": "^0.2.0"
"yarnhook": "^0.3.0"
},
"engines": {
"node": ">= 6.10"
Expand Down
Loading

0 comments on commit 50fb428

Please sign in to comment.