Skip to content

Add additionalProperties: false to some settings #1004

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
merged 1 commit into from
Mar 16, 2021
Merged

Conversation

9at8
Copy link
Contributor

@9at8 9at8 commented Jul 3, 2020

As per:

disableRuleComment: {
enable: boolean;
location: 'separateLine' | 'sameLine';
};
showDocumentation: {
enable: boolean;
};

It looks like eslint.codeAction.disableRuleComment and eslint.codeAction.showDocumentation don't have any other properties. We should set additionalProperties: false in this case.

As per https://github.com/microsoft/vscode-eslint/blob/af8bc9924a35e2adf876dc8c4af0467f390945e9/server/src/eslintServer.ts#L157-L163, it looks like `eslint.codeAction.disableRuleComment` and `eslint.codeAction.showDocumentation` don't have any other properties. We should set `additionalProperties: false` in this case.
@9at8 9at8 requested a review from dbaeumer July 3, 2020 22:02
Base automatically changed from master to main March 2, 2021 14:45
@dbaeumer
Copy link
Member

Makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants