Skip to content

Commit de58b36

Browse files
clydinalan-agius4
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.
1 parent decaef5 commit de58b36

File tree

4 files changed

+0
-43
lines changed

4 files changed

+0
-43
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: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686

8787
"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f":
8888
version "0.0.0"
89-
uid "8e28890cecf2ac5d0d5ca590fafc323dea5f133f"
9089
resolved "https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f"
9190
dependencies:
9291
"@angular/benchpress" "0.2.1"
@@ -5592,11 +5591,6 @@ immediate@~3.0.5:
55925591
resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b"
55935592
integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=
55945593

5595-
immutable@^3.8.2:
5596-
version "3.8.2"
5597-
resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3"
5598-
integrity sha1-wkOZUUVbs5kT2vKBN28VMOEErfM=
5599-
56005594
import-fresh@^3.2.1:
56015595
version "3.3.0"
56025596
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
@@ -10872,13 +10866,6 @@ tslint-no-circular-imports@^0.7.0:
1087210866
resolved "https://registry.yarnpkg.com/tslint-no-circular-imports/-/tslint-no-circular-imports-0.7.0.tgz#9df0a15654d66b172e0b7843eed073fa5ae99b5f"
1087310867
integrity sha512-k3wxpeMC4ef40UbpfBVHEHIzKfNZq5/SCtAO1YjGsaNTklo+K53/TWLrym+poA65RJFDiYgYNWvkeIIkJNA0Vw==
1087410868

10875-
10876-
version "1.9.0"
10877-
resolved "https://registry.yarnpkg.com/tslint-sonarts/-/tslint-sonarts-1.9.0.tgz#feb593e92db328c0328b430b838adbe65d504de9"
10878-
integrity sha512-CJWt+IiYI8qggb2O/JPkS6CkC5DY1IcqRsm9EHJ+AxoWK70lvtP7jguochyNDMP2vIz/giGdWCfEM39x/I/Vnw==
10879-
dependencies:
10880-
immutable "^3.8.2"
10881-
1088210869
tslint@^6.1.3:
1088310870
version "6.1.3"
1088410871
resolved "https://registry.yarnpkg.com/tslint/-/tslint-6.1.3.tgz#5c23b2eccc32487d5523bd3a470e9aa31789d904"

0 commit comments

Comments
 (0)