eslint 7.3.0 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ v7.3.1 - June 22, 2020
2
+
3
+ * [`de77c11`](https://github.com/eslint/eslint/commit/de77c11e7515f2097ff355ddc0d7b6db9c83c892) Fix: Replace Infinity with Number.MAX_SAFE_INTEGER (fixes #13427) (#13435) (Nicholas C. Zakas)
1
4
  v7.3.0 - June 19, 2020
2
5
 
3
6
  * [`638a6d6`](https://github.com/eslint/eslint/commit/638a6d6be18b4a37cfdc7223e1f5acd3718694be) Update: add missing `additionalProperties: false` to some rules' schema (#13198) (Milos Djermanovic)
@@ -722,7 +722,12 @@ class ConfigArrayFactory {
722
722
  *
723
723
  * Refer https://github.com/eslint/eslint/issues/12592
724
724
  */
725
- const clonedRulesConfig = rules && JSON.parse(JSON.stringify((rules)));
725
+ const clonedRulesConfig = rules && JSON.parse(
726
+ JSON.stringify(
727
+ rules,
728
+ (key, value) => (value === Infinity ? Number.MAX_SAFE_INTEGER : value)
729
+ )
730
+ );
726
731
 
727
732
  // Flatten `extends`.
728
733
  for (const extendName of extendList.filter(Boolean)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "7.3.0",
3
+ "version": "7.3.1",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "bin": {