diff --git a/packages/typescript/.npmignore b/packages/typescript/.npmignore index d59f27ed8132..457274275b7c 100644 --- a/packages/typescript/.npmignore +++ b/packages/typescript/.npmignore @@ -1,3 +1,2 @@ * !/tsconfig.json -!/tslint.json diff --git a/packages/typescript/README.md b/packages/typescript/README.md index e06503ddf511..aa32b9fdf48b 100644 --- a/packages/typescript/README.md +++ b/packages/typescript/README.md @@ -36,14 +36,6 @@ npm install --save-dev @sentry-internal/typescript Add the following config files to your project's root directory: -**tslint.json**: - -```json -{ - "extends": "@sentry-internal/typescript/tslint" -} -``` - **tsconfig.json**: ```json diff --git a/packages/typescript/package.json b/packages/typescript/package.json index 338ab3906aef..cc87441bf719 100644 --- a/packages/typescript/package.json +++ b/packages/typescript/package.json @@ -10,12 +10,8 @@ "publishConfig": { "access": "public" }, - "dependencies": { - "tslint-config-prettier": "^1.18.0", - "tslint-consistent-codestyle": "^1.15.1" - }, + "dependencies": {}, "peerDependencies": { - "tslint": "5.16.0", "typescript": "3.8.3" }, "scripts": { diff --git a/packages/typescript/tsconfig.json b/packages/typescript/tsconfig.json index 3a427cc596c9..49c2339c7f21 100644 --- a/packages/typescript/tsconfig.json +++ b/packages/typescript/tsconfig.json @@ -18,16 +18,6 @@ "noImplicitUseStrict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "plugins": [ - { - "name": "typescript-tslint-plugin", - "configFile": "./tslint.json", - "alwaysShowRuleFailuresAsWarnings": false, - "ignoreDefinitionFiles": true, - "mockTypeScriptVersion": false, - "suppressWhileTypeErrorsPresent": false - } - ], "preserveWatchOutput": true, "pretty": true, "sourceMap": true, diff --git a/packages/typescript/tslint.json b/packages/typescript/tslint.json deleted file mode 100644 index a739adabaf6a..000000000000 --- a/packages/typescript/tslint.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "extends": ["tslint:all", "tslint-config-prettier", "tslint-consistent-codestyle"], - "rules": { - // This rule has side effects and must be disabled - "no-unused-variable": false, - - "no-submodule-imports": false, - "no-null-keyword": false, - // We don't want these - "newline-before-return": false, - "no-any": false, - "no-magic-numbers": false, - "no-parameter-properties": false, - "no-require-imports": false, - "prefer-function-over-method": [false], - "strict-boolean-expressions": false, - "no-inferrable-types": false, - "ban-ts-ignore": false, - "increment-decrement": false, - "promise-function-async": false, - "ban-types": [true, ["async", "Use Promises instead, as async/await adds a lot to bundle size."]], - // These are too strict in tslint:all - "comment-format": [true, "check-space"], - "completed-docs": [ - true, - { - "classes": { - "tags": { - "content": {}, - "existence": ["inheritDoc", "hidden"] - } - }, - "enums": { - "tags": { - "content": {}, - "existence": ["inheritDoc", "hidden"] - } - }, - "enum-members": { - "tags": { - "content": {}, - "existence": ["inheritDoc", "hidden"] - } - }, - "functions": { - "tags": { - "content": {}, - "existence": ["inheritDoc", "hidden"] - } - }, - "interfaces": { - "tags": { - "content": {}, - "existence": ["inheritDoc", "hidden"] - } - }, - "methods": { - "tags": { - "content": {}, - "existence": ["inheritDoc", "hidden"] - } - }, - "properties": { - "tags": { - "content": {}, - "existence": ["inheritDoc", "hidden"] - }, - "locations": "instance" - } - } - ], - "interface-name": [true, "never-prefix"], - "member-ordering": [true, "statics-first"], - "no-console": [true, "log"], - "only-arrow-functions": [true, "allow-named-functions"], - "typedef": [true, "call-signature", "parameter", "property-declaration", "member-variable-declaration"], - "variable-name": [true, "check-format", "allow-leading-underscore", "ban-keywords"], - "naming-convention": [ - true, - // This config will apply to properties AND methods. If you only need it for properties, use "property" instead of - // "member". - { "type": "member", "modifiers": "protected", "leadingUnderscore": "require" }, - { "type": "member", "modifiers": "private", "leadingUnderscore": "require" } - ], - // we cannot use Promises as they are not IE10-11 compatibile, so we had to create our own implementation - "await-promise": [true, "PromiseLike"] - } -} diff --git a/yarn.lock b/yarn.lock index 482f2369ee5b..711e8abfe0d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1785,25 +1785,6 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@fimbul/bifrost@^0.21.0": - version "0.21.0" - resolved "https://registry.yarnpkg.com/@fimbul/bifrost/-/bifrost-0.21.0.tgz#d0fafa25938fda475657a6a1e407a21bbe02c74e" - integrity sha512-ou8VU+nTmOW1jeg+FT+sn+an/M0Xb9G16RucrfhjXGWv1Q97kCoM5CG9Qj7GYOSdu7km72k7nY83Eyr53Bkakg== - dependencies: - "@fimbul/ymir" "^0.21.0" - get-caller-file "^2.0.0" - tslib "^1.8.1" - tsutils "^3.5.0" - -"@fimbul/ymir@^0.21.0": - version "0.21.0" - resolved "https://registry.yarnpkg.com/@fimbul/ymir/-/ymir-0.21.0.tgz#8525726787aceeafd4e199472c0d795160b5d4a1" - integrity sha512-T/y7WqPsm4n3zhT08EpB5sfdm2Kvw3gurAxr2Lr5dQeLi8ZsMlNT/Jby+ZmuuAAd1PnXYzKp+2SXgIkQIIMCUg== - dependencies: - inversify "^5.0.0" - reflect-metadata "^0.1.12" - tslib "^1.8.1" - "@glimmer/component@~1.0.0": version "1.0.4" resolved "https://registry.yarnpkg.com/@glimmer/component/-/component-1.0.4.tgz#1c85a5181615a6647f6acfaaed68e28ad7e9626e" @@ -11860,7 +11841,7 @@ get-caller-file@^1.0.1: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== -get-caller-file@^2.0.0, get-caller-file@^2.0.1, get-caller-file@^2.0.5: +get-caller-file@^2.0.1, get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== @@ -13204,11 +13185,6 @@ invariant@^2.2.1, invariant@^2.2.2, invariant@^2.2.4: dependencies: loose-envify "^1.0.0" -inversify@^5.0.0: - version "5.0.5" - resolved "https://registry.yarnpkg.com/inversify/-/inversify-5.0.5.tgz#bd1f8e6d8e0f739331acd8ba9bc954635aae0bbf" - integrity sha512-60QsfPz8NAU/GZqXu8hJ+BhNf/C/c+Hp0eDc6XMIJTxBiP36AQyyQKpBkOVTLWBFDQWYVHpbbEuIsHu9dLuJDA== - invert-kv@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" @@ -19185,11 +19161,6 @@ redux@^4.0.5: loose-envify "^1.4.0" symbol-observable "^1.2.0" -reflect-metadata@^0.1.12: - version "0.1.13" - resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08" - integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg== - regenerate-unicode-properties@^8.2.0: version "8.2.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec" @@ -21862,7 +21833,7 @@ tsconfig-paths@^3.9.0: minimist "^1.2.0" strip-bom "^3.0.0" -tslib@^1.10.0, tslib@^1.7.1, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: +tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== @@ -21877,28 +21848,7 @@ tslib@^2.3.0, tslib@^2.3.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== -tslint-config-prettier@^1.18.0: - version "1.18.0" - resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz#75f140bde947d35d8f0d238e0ebf809d64592c37" - integrity sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg== - -tslint-consistent-codestyle@^1.15.1: - version "1.16.0" - resolved "https://registry.yarnpkg.com/tslint-consistent-codestyle/-/tslint-consistent-codestyle-1.16.0.tgz#52348ea899a7e025b37cc6545751c6a566a19077" - integrity sha512-ebR/xHyMEuU36hGNOgCfjGBNYxBPixf0yU1Yoo6s3BrpBRFccjPOmIVaVvQsWAUAMdmfzHOCihVkcaMfimqvHw== - dependencies: - "@fimbul/bifrost" "^0.21.0" - tslib "^1.7.1" - tsutils "^2.29.0" - -tsutils@^2.29.0: - version "2.29.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" - integrity sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA== - dependencies: - tslib "^1.8.1" - -tsutils@^3.0.0, tsutils@^3.17.1, tsutils@^3.5.0: +tsutils@^3.0.0, tsutils@^3.17.1: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==