-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): [prefer-readonly-parameter-types] added an optional type allowlist #4436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JoshuaKGoldberg
merged 79 commits into
typescript-eslint:v6
from
marekdedic:prefer-readonly-parameter-types-whitelist
Mar 20, 2023
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
453ac54
feat(eslint-plugin): [prefer-readonly-parameter-types] Added an optio…
marekdedic e0a04d7
chore(eslint-plugin): [prefer-readonly-parameter-types] whitelist -> …
marekdedic 06a0631
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
marekdedic 618fbd1
feat(eslint-plugin): [prefer-readonly-parameter-types] Split the allo…
marekdedic 17d013e
fix(eslint-plugin): [prefer-readonly-parameter-types] Fixed lint issu…
marekdedic 6fd713d
fix(eslint-plugin): [prefer-readonly-parameter-types] Using allowlist…
marekdedic b8cdd5c
fix(eslint-plugin): [prefer-readonly-parameter-types] Passing interna…
marekdedic 4ab1f5f
fix(eslint-plugin): [prefer-readonly-parameter-types] Decoupled optio…
marekdedic 49713c8
feat(eslint-plugin): [prefer-readonly-parameter-types] Added tests
marekdedic 6d842ec
fix(eslint-plugin): [prefer-readonly-parameter-types] Added missing d…
marekdedic 2734b7a
docs(eslint-plugin): [prefer-readonly-parameter-types] Added docs for…
marekdedic d4fa56b
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
marekdedic 3df00ed
fix(eslint-plugin): [prefer-readonly-parameter-types] Fixed regressio…
marekdedic 8188084
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
marekdedic 53aac78
feat(eslint-plugin): [prefer-readonly-parameter-types] Merged excepti…
marekdedic efd4140
feat(eslint-plugin): [prefer-readonly-parameter-types] Added a schema…
marekdedic 0504608
chore(eslint-plugin): [prefer-readonly-parameter-types] Split TypeAll…
marekdedic 7a6c943
docs(eslint-plugin): [prefer-readonly-parameter-types] Updated docs f…
marekdedic f2acfaa
docs(eslint-plugin): [prefer-readonly-parameter-types] Fixed allowlis…
marekdedic b178a21
test(eslint-plugin): [prefer-readonly-parameter-types] Added tests fo…
marekdedic e8af7cb
chore(eslint-plugin): [prefer-readonly-parameter-types] Deduplicated …
marekdedic 5e18240
fix(eslint-plugin): [prefer-readonly-parameter-types] Added back read…
marekdedic 59371e7
chore(eslint-plugin): [prefer-readonly-parameter-types] Removed defau…
marekdedic 3eb89b6
docs(eslint-plugin): [prefer-readonly-parameter-types] Fixed default …
marekdedic 766a2e7
test(eslint-plugin): [prefer-readonly-parameter-types] Not using DOM …
marekdedic 854dcac
chore(eslint-plugin): [prefer-readonly-parameter-types] Using propert…
marekdedic 0e489cb
feat(eslint-plugin): [prefer-readonly-parameter-types] TypeAllowlistI…
marekdedic 6534ef3
docs(eslint-plugin): [prefer-readonly-parameter-types] TypeAllowlistI…
marekdedic 5474d23
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
marekdedic 81b18e3
test(type-utils): [prefer-readonly-parameter-types] Added rudimentary…
marekdedic 164ae2b
test(type-utils): [prefer-readonly-parameter-types] Added test for al…
marekdedic 6bda8a3
Update packages/type-utils/src/TypeAllowListItem.ts to use enum in JS…
marekdedic abfc236
fix(eslint-plugin): [prefer-readonly-parameter-types] Added trainling…
marekdedic ff28c54
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
marekdedic da498ea
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
bradzacher bd6b77d
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
marekdedic bbca206
fix(eslint-plugin) Fixed type imports not being separated
marekdedic eec8883
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
marekdedic ffd2aae
feat(type-utils): Added TypeOrValueSpecifier, its schema and test for…
marekdedic 611ca15
Merge branch 'main' into prefer-readonly-parameter-types-whitelist
marekdedic c4d0a3f
feat(type-utils): Added typeMatchesSpecifier() and switched isTypeRea…
marekdedic 5d74151
fix(eslint-plugin): [prefer-readonly-parameter-types] Fixed tests hav…
marekdedic fb67f4d
fix(type-utils): Removed unneeded function isTypeExcepted
marekdedic c4334cc
feat(type-utils): Added source file checking to typeMatchesFileSpecif…
marekdedic bc3ce11
docs(eslint-plugin): [prefer-readonly-parameter-types] Updated docs t…
marekdedic 1e1bfc2
docs(eslint-plugin): [prefer-readonly-parameter-types] Typo fix
marekdedic c5c1d70
docs(eslint-plugin): [prefer-readonly-parameter-types] Typo fix 2
marekdedic 22bb891
feat(type-utils): Added tests for typeMatchesSpecifier()
marekdedic af5cfc0
fix(type-utils): Using node path joining typeMatchesSpecifier()
marekdedic 5c3f37f
feat(type-utils): Removed MultiSourceSpecifier
marekdedic 60dcf36
chore(type-utils): Simplified typeMatchesSpecifier()
marekdedic e6d81a9
feat(type-utils): Added more tests for typeMatchesSpecifier()
marekdedic 2d242f0
Merge branch 'v6' into prefer-readonly-parameter-types-whitelist
marekdedic 333d008
docs(prefer-readonly-parameter-types) more legible docs
marekdedic 08eebc8
fix(eslint-plugin): [prefer-readonly-parameter-types] Fixed missing e…
marekdedic eb7aef6
chore(type-utils): Simplified typeDeclaredInFile()
marekdedic b5b91cb
chore(type-utils): Using unknown instead of any in tests
marekdedic e41d8be
test(type-utils): grammar fix in test specifications
marekdedic 852ca69
chore: Reset yarn.lock
marekdedic 5407105
chore: renamed readonlyness allowlist to just allow
marekdedic b9f785c
fix(type-utils): fixed services.program now being optional and not ch…
marekdedic 8626d16
test(type-utils): negative tests for isTypeReadonly
marekdedic 235acd3
fix(eslint-plugin): bracket style array notation
marekdedic a1f38dd
Merge branch 'v6' into prefer-readonly-parameter-types-whitelist
marekdedic 93fbcd8
Merge branch 'prefer-readonly-parameter-types-whitelist' of github.co…
marekdedic 3ad0e9e
Merge branch 'v6' into prefer-readonly-parameter-types-whitelist
marekdedic 0bd7601
fix(type-utils): Fixed array style
marekdedic 0136e5b
fix(type-utils): Not fetching symbol repeatedly
marekdedic 386fd03
fix(type-utils): Remove ManySpecifiers format from TypeOrValueSpecifi…
marekdedic ed1e07a
docs(eslint-plugin): [prefer-readonly-parameter-types] described file…
marekdedic 3a89ec5
Merge branch 'v6' into prefer-readonly-parameter-types-whitelist
bradzacher 346fdbc
path and package
JoshuaKGoldberg 609351e
Update docs too
JoshuaKGoldberg a535fb6
Update docs too (again)
JoshuaKGoldberg 8e3f910
Merge branch 'v6'
JoshuaKGoldberg 95bbaa5
Added test name helpers, and fixed test data
JoshuaKGoldberg 5eae317
test(type-utils): fixed package schema tests
marekdedic 751e2de
test(eslint-plugin): fixed type whitelist schema in prefer-readonly-p…
marekdedic 3d465cc
Applied lowercasing to typeDeclaredInFile
JoshuaKGoldberg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultLib
would be a betterfrom
value as it would make it more explicit that it refers to the TypeScript default libs rather than just a random lib.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #5271 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, that's were all the conversation about the details is. 🙂