check-side-effects
Advanced tools
Comparing version 0.0.13 to 0.0.14
{ | ||
"name": "check-side-effects", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Check if a ES module has side effects.", | ||
@@ -25,9 +25,10 @@ "repository": "https://github.com/filipesilva/check-side-effects", | ||
"rollup-plugin-terser": "~4.0.4", | ||
"tslib": "~1.9.3" | ||
"tslib": "~1.9.3", | ||
"tslint": "^5.16.0", | ||
"typescript": "^3.4.5" | ||
}, | ||
"devDependencies": { | ||
"@types/minimist": "~1.2.0", | ||
"@types/terser": "~3.8.0", | ||
"typescript": "~3.2.4" | ||
"@types/terser": "~3.8.0" | ||
} | ||
} |
@@ -128,1 +128,28 @@ # Check side effects | ||
``` | ||
## TSLint rules | ||
Included you can find a [TSLint](https://palantir.github.io/tslint/) rule to detect toplevel property access. | ||
You can use it by adding the path below to `rulesDirectory` and the `no-toplevel-property-access` rule. Path fragments to include are optional and, if omitted, all TS files will be checked. | ||
```json | ||
{ | ||
"rulesDirectory": [ | ||
"node_modules/check-side-effects/dist/tslint" | ||
], | ||
"rules": { | ||
"no-toplevel-property-access": [ | ||
true, | ||
"/path/fragments/to/include/", | ||
"/another/path/fragment/to/include/" | ||
] | ||
} | ||
} | ||
``` | ||
## Developing on this repository | ||
To build, run `npm run build`. To test, run `npm run test`. | ||
To release, run `npm run release <release-type>` where `<release-type>` is one of `patch`, `minor` or `major`. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39118
2
9
403
155
8
+ Addedtslint@^5.16.0
+ Addedtypescript@^3.4.5
+ Addedansi-styles@3.2.1(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuiltin-modules@1.1.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddiff@4.0.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtslint@5.20.1(transitive)
+ Addedtsutils@2.29.0(transitive)
+ Addedtypescript@3.9.10(transitive)
+ Addedwrappy@1.0.2(transitive)