Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Install from npm to your devDependencies:
npm install --save-dev custom-tslint-rules
```

Configure tslint to use the custom-tslint-rules folder:
Configure tslint to extend the custom-tslint-rules configuration:

Add the following path to the `rulesDirectory` setting in your `tslint.json` file:
Add the following to the `extends` setting in your `tslint.json` file:

```json
{
"rulesDirectory": [
"node_modules/custom-tslint-rules/dist"
"extends": [
"custom-tslint-rules"
],
"rules": {
...
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"rulesDirectory": ["./dist"],
"rules": {
"import-barrels": true,
"jasmine-no-lambda-expression-callbacks": true
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
version "4.14.64"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.64.tgz#979cf3a3d4a368670840bf9b3e448dc33ffe84ee"

"@types/node@^7.0.18":
version "7.0.18"
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.18.tgz#cd67f27d3dc0cfb746f0bdd5e086c4c5d55be173"
"@types/node@^8.0.3":
version "8.0.14"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.14.tgz#4a19dc6bb61d16c01cbadc7b30ac23518fff176b"

abbrev@1, abbrev@1.0.x:
version "1.0.9"
Expand Down Expand Up @@ -1020,9 +1020,9 @@ type-check@~0.3.2:
dependencies:
prelude-ls "~1.1.2"

typescript@^2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.2.tgz#f0f045e196f69a72f06b25fd3bd39d01c3ce9984"
typescript@~2.4.1:
version "2.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.2.tgz#f8395f85d459276067c988aa41837a8f82870844"

uglify-js@^2.6:
version "2.7.5"
Expand Down