Skip to content
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

Add additionalProperties: false to some settings #1004

Merged
merged 1 commit into from Mar 16, 2021
Merged

Add additionalProperties: false to some settings #1004

merged 1 commit into from Mar 16, 2021

Conversation

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 Jul 3, 2020
Base automatically changed from master to main Mar 2, 2021
@dbaeumer
Copy link

@dbaeumer dbaeumer commented Mar 16, 2021

Makes sense.

@dbaeumer dbaeumer merged commit 55cb10d into main Mar 16, 2021
3 checks passed
Sebastianokunkelo added a commit to Sebastianokunkelo/vscode-eslint that referenced this issue Mar 16, 2021
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.

None yet

3 participants