Skip to content

Commit

Permalink
feat(packages): ngrx dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
draylegend committed Sep 23, 2022
1 parent da6ad3a commit 5ae7aff
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,40 @@
"parserOptions": {
"schema": "./schema.graphql"
}
},
{
"parser": "@typescript-eslint/parser",
"plugins": ["@ngrx"],
"files": ["*actions.ts", "*effects.ts", "*reducer.ts", "*selectors.ts"],
"rules": {
"@ngrx/updater-explicit-return-type": "warn",
"@ngrx/no-dispatch-in-effects": "warn",
"@ngrx/no-effect-decorator-and-creator": "error",
"@ngrx/no-effect-decorator": "warn",
"@ngrx/no-effects-in-providers": "error",
"@ngrx/prefer-action-creator-in-of-type": "warn",
"@ngrx/prefer-concat-latest-from": "warn",
"@ngrx/prefer-effect-callback-in-block-statement": "warn",
"@ngrx/use-effects-lifecycle-interface": "warn",
"@ngrx/avoid-combining-selectors": "warn",
"@ngrx/avoid-dispatching-multiple-actions-sequentially": "warn",
"@ngrx/avoid-duplicate-actions-in-reducer": "warn",
"@ngrx/avoid-mapping-selectors": "warn",
"@ngrx/good-action-hygiene": "warn",
"@ngrx/no-multiple-global-stores": "warn",
"@ngrx/no-reducer-in-key-names": "warn",
"@ngrx/no-store-subscription": "warn",
"@ngrx/no-typed-global-store": "warn",
"@ngrx/on-function-explicit-return-type": "warn",
"@ngrx/prefer-action-creator-in-dispatch": "warn",
"@ngrx/prefer-action-creator": "warn",
"@ngrx/prefer-inline-action-props": "warn",
"@ngrx/prefer-one-generic-in-create-for-feature-selector": "warn",
"@ngrx/prefer-selector-in-select": "warn",
"@ngrx/prefix-selectors-with-select": "warn",
"@ngrx/select-style": "warn",
"@ngrx/use-consistent-global-store-name": "warn"
}
}
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"@graphql-eslint/eslint-plugin": "^3.10.7",
"@nestjs/schematics": "^9.0.0",
"@nestjs/testing": "^9.0.0",
"@ngrx/eslint-plugin": "^14.3.1",
"@ngrx/schematics": "^14.3.1",
"@ngrx/store-devtools": "^14.3.1",
"@nrwl/cli": "14.7.11",
"@nrwl/cypress": "14.7.11",
Expand Down
48 changes: 44 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
ora "5.4.1"
rxjs "6.6.7"

"@angular-devkit/[email protected]", "@angular-devkit/schematics@~14.2.0":
"@angular-devkit/[email protected]", "@angular-devkit/schematics@^14.0.0-rc.0", "@angular-devkit/schematics@~14.2.0":
version "14.2.3"
resolved "https://registry.yarnpkg.com/@angular-devkit/schematics/-/schematics-14.2.3.tgz#7222bcb5b87a486eacbc9e878f3a5070f485f0d9"
integrity sha512-98ldx+To7xW1BH/DqIToQwHVscPZhXnZP01SeoiUnFlJE5FnXx8Lv7qHAQtE96M+cfE5NR1NKBgfCH3S3rnmFA==
Expand Down Expand Up @@ -2451,13 +2451,29 @@
dependencies:
tslib "^2.0.0"

"@ngrx/eslint-plugin@^14.3.1":
version "14.3.1"
resolved "https://registry.yarnpkg.com/@ngrx/eslint-plugin/-/eslint-plugin-14.3.1.tgz#f070d2eddec0245de2ecfed963df23cc59444d12"
integrity sha512-dIYRw/oVD6BUVma9QBMc7gdXQUegOBAlrIdOj+sKojdwrwUQsoshQIsRBXccX+CgZt19WdbxCyVMG+6CXAy93A==
dependencies:
"@angular-devkit/schematics" "^14.0.0-rc.0"
"@typescript-eslint/experimental-utils" "^5.4.0"
eslint-etc "^5.1.0"
semver "^7.3.5"
strip-json-comments "3.1.1"

"@ngrx/router-store@^14.3.1":
version "14.3.1"
resolved "https://registry.yarnpkg.com/@ngrx/router-store/-/router-store-14.3.1.tgz#58647679d907f29f2510cf0f8c4ff10457e5656e"
integrity sha512-LN8Wqee4h9sCIhMJbbmCKxnMX6F3aCB2xFXrkYZdF2H0oAL5jznhnALankQRQqzv6/Y6E98nFurthPbaK85dAA==
dependencies:
tslib "^2.0.0"

"@ngrx/schematics@^14.3.1":
version "14.3.1"
resolved "https://registry.yarnpkg.com/@ngrx/schematics/-/schematics-14.3.1.tgz#2f50a4b5a951a9e57cb86f95ccb716ce3c35ed07"
integrity sha512-vXBNC+5EoMJ7joLc/7y9wUslegi1gCG0EJcHtnYAos+uF+oYo7c9BkLER7nYcqf7CLLdQ6t6TYheT+t/lUH4bA==

"@ngrx/store-devtools@^14.3.1":
version "14.3.1"
resolved "https://registry.yarnpkg.com/@ngrx/store-devtools/-/store-devtools-14.3.1.tgz#867e3b7afaf393e251b1452b44191e4ef5f5ab5e"
Expand Down Expand Up @@ -3301,7 +3317,7 @@
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b"
integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==

"@types/yargs@^17.0.8":
"@types/yargs@^17.0.0", "@types/yargs@^17.0.8":
version "17.0.12"
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.12.tgz#0745ff3e4872b4ace98616d4b7e37ccbd75f9526"
integrity sha512-Nz4MPhecOFArtm81gFQvQqdV7XYCrWKx5uUt6GNHredFHn1i2mtWqXTON7EPXMtNi1qjtjEM/VCHDhcHsAMLXQ==
Expand Down Expand Up @@ -3329,6 +3345,13 @@
semver "^7.3.7"
tsutils "^3.21.0"

"@typescript-eslint/experimental-utils@^5.0.0", "@typescript-eslint/experimental-utils@^5.4.0":
version "5.38.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.38.0.tgz#84e593a66138d75c11e85a0dbe9a8a6a013bf3cb"
integrity sha512-kzXBRfvGlicgGk4CYuRUqKvwc2s3wHXNssUWWJU18bhMRxriFm3BZWyQ6vEHBRpEIMKB6b7MIQHO+9lYlts19w==
dependencies:
"@typescript-eslint/utils" "5.38.0"

"@typescript-eslint/parser@^5.36.1":
version "5.38.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.38.0.tgz#5a59a1ff41a7b43aacd1bb2db54f6bf1c02b2ff8"
Expand Down Expand Up @@ -5856,6 +5879,15 @@ [email protected]:
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.1.0.tgz#4ef1eaf97afe5176e6a75ddfb57c335121abc5a6"
integrity sha512-oKMhGv3ihGbCIimCAjqkdzx2Q+jthoqnXSP+d86M9tptwugycmTFdVR4IpLgq2c4SHifbwO90z2fQ8/Aio73yw==

eslint-etc@^5.1.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/eslint-etc/-/eslint-etc-5.2.0.tgz#c51c19a2ffb6447af76a1c5ffd13b9a212db859b"
integrity sha512-Gcm/NMa349FOXb1PEEfNMMyIANuorIc2/mI5Vfu1zENNsz+FBVhF62uY6gPUCigm/xDOc8JOnl+71WGnlzlDag==
dependencies:
"@typescript-eslint/experimental-utils" "^5.0.0"
tsutils "^3.17.1"
tsutils-etc "^1.4.1"

eslint-plugin-cypress@^2.10.3:
version "2.12.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-2.12.1.tgz#9aeee700708ca8c058e00cdafe215199918c2632"
Expand Down Expand Up @@ -10789,7 +10821,7 @@ strip-indent@^3.0.0:
dependencies:
min-indent "^1.0.0"

strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
Expand Down Expand Up @@ -11209,7 +11241,15 @@ tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==

tsutils@^3.21.0:
tsutils-etc@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/tsutils-etc/-/tsutils-etc-1.4.1.tgz#bd42a0079d534765ab314d087f8a89c77a68723f"
integrity sha512-6UPYgc7OXcIW5tFxlsZF3OVSBvDInl/BkS3Xsu64YITXk7WrnWTVByKWPCThFDBp5gl5IGHOzGMdQuDCE7OL4g==
dependencies:
"@types/yargs" "^17.0.0"
yargs "^17.0.0"

tsutils@^3.17.1, tsutils@^3.21.0:
version "3.21.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
Expand Down

0 comments on commit 5ae7aff

Please sign in to comment.