Closed as not planned
Description
What rule do you want to change?
no-restricted-properties
What change do you want to make?
Generate more warnings
How do you think the change should be implemented?
A new default behavior
Example code
/* eslint no-restricted-properties: [2, {
"object": "config.apiKey",
"allowProperties": ["settings"]
}] */
config.apiKey.settings = "12345";
config.apiKey.other = "value";
What does the rule currently do for this code?
The rule currently doesn't report any errors.
What will the rule do after it's changed?
config.apiKey.settings = "12345"; // No error
config.apiKey.other = "value"; // Error: 'config.apiKey.other' is restricted from being used
Participation
- I am willing to submit a pull request to implement this change.
Additional comments
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Complete