Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit f1e4dcd

Browse files
renovate[bot]renovate-botAverethel
authored
feat: compatibility with typescript 4
BREAKING CHANGE: with the update of `@typescript-eslint` there are some rule updates that are relevant. Most notably there's a big extension on prettier rules that would change the codebase a bit. * chore(deps): update dependency typescript to v4 * chore: update @typescript/eslint packages * fix: pre-release * fix: lint * fix: release config * fix: disable @typescript-eslint/explicit-module-boundary-types Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Krzysztof Sakwerda <[email protected]>
1 parent 959527c commit f1e4dcd

File tree

6 files changed

+206
-22
lines changed

6 files changed

+206
-22
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = {
4040
rules: {
4141
"@typescript-eslint/no-explicit-any": "error",
4242
"@typescript-eslint/explicit-function-return-type": "off",
43+
"@typescript-eslint/explicit-module-boundary-types": "off",
4344
"@typescript-eslint/no-unused-vars": [
4445
"error",
4546
{

next.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
"error",
2424
{
2525
allow: [
26+
// eslint-disable-next-line @typescript-eslint/no-var-requires
2627
...require("./shared.js").whitelistedImports,
2728
"**/configuration/**/*",
2829
"**/configuration/*",

package-lock.json

Lines changed: 197 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"license": "MIT",
1919
"homepage": "https://github.com/carforyou/carforyou-eslint-config-pkg#readme",
2020
"dependencies": {
21-
"@typescript-eslint/eslint-plugin": "^2.33.0",
22-
"@typescript-eslint/eslint-plugin-tslint": "^2.33.0",
23-
"@typescript-eslint/parser": "^2.33.0",
21+
"@typescript-eslint/eslint-plugin": "^3.10.0",
22+
"@typescript-eslint/eslint-plugin-tslint": "^3.10.0",
23+
"@typescript-eslint/parser": "^3.10.0",
2424
"eslint": "^6.8.0",
2525
"eslint-config-prettier": "^6.11.0",
2626
"eslint-plugin-cypress": "^2.10.3",
@@ -43,7 +43,7 @@
4343
"@pika/plugin-standard-pkg": "^0.9.2",
4444
"jq-cli-wrapper": "^1.6.1",
4545
"semantic-release": "^17.0.7",
46-
"typescript": "^3.9.2"
46+
"typescript": "^4.0.0"
4747
},
4848
"publishConfig": {
4949
"access": "public"

react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ module.exports = {
5757
"import/no-internal-modules": [
5858
"error",
5959
{
60+
// eslint-disable-next-line @typescript-eslint/no-var-requires
6061
allow: require("./shared.js").whitelistedImports,
6162
},
6263
],

release.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module.exports = {
88
prerelease: "${ name }" + `-${process.env.CIRCLE_SHA1}`,
99
},
1010
{
11-
name: "initial-rules",
12-
prerelease: "rc1" + `-${process.env.CIRCLE_SHA1}`,
11+
name: "renovate/typescript-4.x",
12+
prerelease: "ts-4" + `-${process.env.CIRCLE_SHA1}`,
1313
},
1414
],
1515
pkgRoot: "pkg",

0 commit comments

Comments
 (0)