Skip to content

Commit 54aa4a3

Browse files
clydindgp1130
authored andcommitted
test: remove unmaintained third-party tslint rules
The `tslint-sonarts` package is both deprecated and unmaintained. The rules provided by the package are now removed from the `tslint` configuration for the project. (cherry picked from commit de58b36)
1 parent df99757 commit 54aa4a3

File tree

4 files changed

+3
-45
lines changed

4 files changed

+3
-45
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@
219219
"tslib": "^2.0.0",
220220
"tslint": "^6.1.3",
221221
"tslint-no-circular-imports": "^0.7.0",
222-
"tslint-sonarts": "1.9.0",
223222
"typescript": "4.2.4",
224223
"verdaccio": "5.0.4",
225224
"verdaccio-auth-memory": "^10.0.0",

scripts/validate-licenses.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const ignoredPackages = [
6969
'@angular/[email protected]', // Hey, that's us!
7070
// * Development only
7171
'[email protected]', // CC0 but it's content only (index.json, no code) and not distributed.
72-
'[email protected]', // LGPL-3.0 but only used as a tool, not linked in the build.
7372

7473
// * Broken license fields
7574
'[email protected]', // MIT but broken license in package.json

tslint.json

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
"extends": [
66
"tslint-no-circular-imports"
77
],
8-
"rulesDirectory": [
9-
"node_modules/tslint-sonarts/lib/rules"
10-
],
118
"linterOptions": {
129
"format": "codeFrame",
1310
"exclude": [
@@ -16,31 +13,6 @@
1613
]
1714
},
1815
"rules": {
19-
// ==================================================================================================
20-
// tslint-sonarts rules. See https://github.com/SonarSource/SonarTS
21-
// These rules are part of the bug detection section of tslint-sonarts
22-
"no-big-function": true,
23-
"no-all-duplicated-branches": true,
24-
"no-case-with-or": true,
25-
"no-collection-size-mischeck": true,
26-
"no-element-overwrite": true,
27-
"no-empty-destructuring": true,
28-
"no-identical-conditions": true,
29-
"no-ignored-initial-value": true,
30-
"no-ignored-return": true,
31-
"no-in-misuse": true,
32-
"no-misleading-array-reverse": true,
33-
"no-misspelled-operator": true,
34-
"no-self-assignment": true,
35-
"no-unthrown-error": true,
36-
"no-use-of-empty-return-value": true,
37-
"no-useless-increment": true,
38-
"no-invalid-await": true,
39-
"prefer-promise-shorthand": true,
40-
41-
//These rules are part of the code smell detection section of tslint-sonarts
42-
"no-dead-store": true,
43-
"no-useless-intersection": true,
4416
// ==================================================================================================
4517
// base tslint rules
4618
"arrow-return-shorthand": true,

yarn.lock

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@
8686

8787
"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#5b8b7a8b04e205eea784168a511c0258fb9995f3":
8888
version "0.0.0"
89-
resolved "https://github.com/angular/dev-infra-private-builds.git#5b8b7a8b04e205eea784168a511c0258fb9995f3"
89+
resolved "https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f"
9090
dependencies:
9191
"@angular/benchpress" "0.2.1"
9292
"@bazel/buildifier" "^4.0.1"
9393
"@octokit/graphql" "^4.6.1"
9494
"@octokit/rest" "16.28.7"
9595
"@octokit/types" "^6.0.0"
9696
brotli "^1.3.2"
97-
chalk "^2.3.1"
97+
chalk "^4.1.0"
9898
clang-format "^1.4.0"
9999
cli-progress "^3.7.0"
100100
conventional-commits-parser "^3.2.1"
@@ -113,7 +113,7 @@
113113
shelljs "^0.8.4"
114114
ts-node "^9.1.1"
115115
tslib "^2.1.0"
116-
typed-graphqlify "^2.3.0"
116+
typed-graphqlify "^3.1.1"
117117
typescript "~4.2.4"
118118
yaml "^1.10.0"
119119
yargs "^16.2.0"
@@ -5647,11 +5647,6 @@ immediate@~3.0.5:
56475647
resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b"
56485648
integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=
56495649

5650-
immutable@^3.8.2:
5651-
version "3.8.2"
5652-
resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3"
5653-
integrity sha1-wkOZUUVbs5kT2vKBN28VMOEErfM=
5654-
56555650
import-fresh@^3.2.1:
56565651
version "3.3.0"
56575652
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
@@ -10927,13 +10922,6 @@ tslint-no-circular-imports@^0.7.0:
1092710922
resolved "https://registry.yarnpkg.com/tslint-no-circular-imports/-/tslint-no-circular-imports-0.7.0.tgz#9df0a15654d66b172e0b7843eed073fa5ae99b5f"
1092810923
integrity sha512-k3wxpeMC4ef40UbpfBVHEHIzKfNZq5/SCtAO1YjGsaNTklo+K53/TWLrym+poA65RJFDiYgYNWvkeIIkJNA0Vw==
1092910924

10930-
10931-
version "1.9.0"
10932-
resolved "https://registry.yarnpkg.com/tslint-sonarts/-/tslint-sonarts-1.9.0.tgz#feb593e92db328c0328b430b838adbe65d504de9"
10933-
integrity sha512-CJWt+IiYI8qggb2O/JPkS6CkC5DY1IcqRsm9EHJ+AxoWK70lvtP7jguochyNDMP2vIz/giGdWCfEM39x/I/Vnw==
10934-
dependencies:
10935-
immutable "^3.8.2"
10936-
1093710925
tslint@^6.1.3:
1093810926
version "6.1.3"
1093910927
resolved "https://registry.yarnpkg.com/tslint/-/tslint-6.1.3.tgz#5c23b2eccc32487d5523bd3a470e9aa31789d904"

0 commit comments

Comments
 (0)