Config clone before validating kills Object data (7.3.0)
See original GitHub issue- ESLint Version: 7.3.0
The latest update breaks eslint-plugin-import and I believe some other eslint plugins due to configuration cloning by JSON.parse(JSON.stringify(Object))
related PR: https://github.com/eslint/eslint/pull/13034
Any plugin that use any global property like “Infinity” wont work properly.
JSON.parse(JSON.stringify(Infinity)) => null
Configuration example https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js#L236
Issue Analytics
- State:
- Created 3 years ago
- Reactions:23
- Comments:23 (17 by maintainers)
Top Results From Across the Web
2 Cloning Procedure - Oracle Help Center
How to clone an on-premise, fully provisioned instance of Oracle Fusion Applications and perform production-to-test data movement.
Read more >Ext.grid.selection.Columns | ExtReact 7.3.0
A class which encapsulates a range of columns defining a selection in a grid. No members found using the current filters. configs. Optional...
Read more >Cisco WAE 7.3.0 User Guide - Cisco
Configure LDAP server details using the WAE CLI. Example: LDAP configuration # wae_cli -u admin # conf (config)# wae ldap-config enabled (config)# ...
Read more >JBoss EAP 7.3.0.Beta Model Reference
If this new address is incorrect please manually configure the connector to use ... Please make sure you close all JMS connections explicitly...
Read more >QRadar APARs 101 - IBM
When QRadar Incident Forensics tries to generate a local copy using an HTTP ... the improper handling of PropertyDescriptor objects used with data...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Eslint is an awesome tool to ensure code style consistency, especially when paired with airbnb’s stricter rules. The eslint-config-airbnb-base, with some 3 million weekly downloads, now breaks with 7.3.0 as pointed out. A humble suggestion for the future is to integrate tests that represents how eslint is used by the most popular repos in its ecosystem (of which eslint-config-airbnb-base is one) and not break compatibility until the next major rev
Given the rarity of users using print-config or cache, and considering this has been in the airbnb config for two years, it seems likely that there’s a significant amount of the ecosystem that is unaware that rule schemas must be JSON-serializable values.
I implore you to reconsider and delay this restriction until the next semver-major, and consider this a missed opportunity from the v7.0.0 release.