fisker Cheung

Results 335 issues of fisker Cheung

### 💻 - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```console require('@babel/parser').parse('a//', {ranges: true})...

pkg: parser
area: comments

### 💻 - [ ] Would you like to work on this feature? ### What problem are you trying to solve? In Prettier standalone version, we hackly remove colors and...

### 💻 - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```js const randomText =...

area: errors

It seems not clear that it's a wrench on small font size. Windows ![Image](https://github.com/user-attachments/assets/d44f6f33-6b34-40ff-8d1f-097907cdfdd6) VS ![Image](https://github.com/user-attachments/assets/9d4112ef-e9db-4279-97f1-59e41218c7f4)

### Description Similar to #2680 ### Examples ```js // ❌ import foo from "foo" with {}; // ✅ import foo from "foo"; ``` ```js // ❌ export {foo} from "foo"...

evaluating
new rule

### Description https://github.com/sindresorhus/eslint-plugin-unicorn/pull/2679 ### Examples ```js // ❌ import {} from "foo"; // ✅ import "foo"; ``` ```js // ❌ export {} ``` ```js // ❌ export {} from "foo";...

evaluating
new rule

Part of #1514 Forbid `array.reverse()`, but allow it to be used as an expression statement by default. Even in this case ```js const reversed = [...array].reverse() ``` `array` can be...

### Description I have a module that some of the exports can't use identifier, ```js export {default as 'a string'} from './1.js'; export {default as 'canBeAIdentifier'} from './2.js'; ``` Should...

evaluating
new rule

### Description Prefer `process.cwd()` over `path.resolve()`. The results are the same, but `process.cwd()` is faster and has a clear intention. ### Examples ```js // ❌ path.resolve() // ✅ process.cwd() ```...

help wanted
new rule

### Description Not sure what kind of patterns we should catch. But I guess, if a variable is only used in `try` and called a method in `finally` can definitely...

evaluating
new rule