Project:
View Revisions: Issue #45551 | [ Back to Issue ] | ||
Summary | 0045551: Fix potential code issues detected by ESLint | ||
Revision | 2020-12-11 11:19 by jarmendariz | ||
Description | When updating ESLint to its latest version (7.15.0 at the time of writing), the linter detects several code issues that goes unnoticed in the current version (5.16.x). Those issues falls into one of the following categories: - no-redeclare: When declaring globals that are already declared elsewhere - no-prototype-builtins: newer versions of ESLint does not recommend calling hasOwnProperty() from an object directly for security reasons. See [1] for details. - no-use-before-define: This appears when attempting to use variables before declaring them. And some other errors related to the naming of Jest tests. All of those issues can be fixed without changing the behavior of the code and does not affect the result of the linter in the current version, so it can be done beforehand and make our code ready for the upgrade to newer versions of ESLint. [1] https://eslint.org/docs/rules/no-prototype-builtins [^] |
||
Revision | 2020-12-09 21:30 by jarmendariz | ||
Description | When updating ESLint to its latest version (7.15.0 at the time of writing), the linter detects several code issues that goes unnoticed in the current version (5.16.x). Those issues falls into one of the following categories: - no-redeclare: When declaring globals that are already declared elsewhere - no-prototype-builtins: newer versions of ESLint does not recommend calling hasOwnProperty() from an object directly for security reasons. See [1] for details. - no-use-before-define: This appears when attempting to use variables before declaring them. And some other errors related to the naming of Jest tests. All of those issues can be fixed without changing the behavior of the code and does not affect the result of the linter in the current version, so it can be done beforehand and make our code ready for the upgrade to newer versions of ESLint. |
Copyright © 2000 - 2009 MantisBT Group |