eslint-plugin-ecmascript-compat currently compares version number strings with the >= operator, which only works if each component (major/minor/patch) of both version strings is the same number of digits, making the plugin unusable in many cases. (For example, the plugin currently evaluates 9.0.0 as being a higher version number than 10.0.0.) This patch adds proper version comparison.
eslint-plugin-ecmascript-compat
currently compares version number strings with the>=
operator, which only works if each component (major/minor/patch) of both version strings is the same number of digits, making the plugin unusable in many cases. (For example, the plugin currently evaluates9.0.0
as being a higher version number than10.0.0
.) This patch adds proper version comparison.