fisker Cheung
fisker Cheung
I wonder if `arrow-body-style` and `prefer-arrow-callback` extend the fix range will fix the issue?
That's what I was thinking, but I don't know if it works.
It can be fixable https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/rules/no-array-for-each.js
`unicorn/no-array-for-each` may not work well with types, but we'll be happy to accept adjustment.
`Import {"string" as foo} from "foo"` not sure if it works for javascript, this is designed for wasm, I think.
Seems `meriyah` don't support this syntax above either. Babel added support for it last year. https://babeljs.io/blog/2020/10/15/7.12.0#imports-and-exports-with-string-names-12091httpsgithubcombabelbabelpull12091
This syntax enabled by default in babel later https://github.com/babel/babel/pull/13195 > This syntax is effectively stage 4. It didn't go through the proposals process
~@sosukesuzuki Only `imported` and `exported`? Does it allow `local` use string?~ I saw your PR in estree. Thanks.
```js class A{ #x = {a: 1} a(){ return this?.#x.a } } new A().a() ```
```js class A{ #x = {a: 1} a(){ const obj = this return obj?.#x.a } } new A().a() ```