robatwilliams / es-compat

Check JavaScript code compatibility with target runtime environments
MIT License
64 stars 13 forks source link

ES2022 Arbitrary module namespace names #62

Closed robatwilliams closed 1 year ago

robatwilliams commented 1 year ago

Supported by the plugin - https://eslint-community.github.io/eslint-plugin-es-x/rules/no-arbitrary-module-namespace-names.html

Support data is waiting on https://github.com/mdn/browser-compat-data/issues/18152

So this couldn't be done as part of #44

robatwilliams commented 1 year ago

Spec came from https://github.com/tc39/ecma262/pull/2154. Seems to be about alignment rather than a feature people wanted.

I'm not sure why anyone would ever want to use arbitrary string literals for import and export names.

I don't think it's worth implementing this for the sake of completeness alone, so closing. Comment if you think it'd be useful.