fisker Cheung

Results 335 issues of fisker Cheung

### ESLint version v9.37.0 ### What problem do you want to solve? I'm running ESLint on a giant project, with the `ESLint#lintFiles()`, it takes a long time, but I only...

enhancement
core

### ESLint version N/A ### What problem do you want to solve? Currently, we are concatenating strings in `SourceCodeFixer.applyFixes()`. [`magic-string`](https://www.npmjs.com/package/magic-string) is widely used for code generator. In my experience, `magic-string`...

enhancement
core

### Description When Error subclass has a `message` getter, can't call `super('message')` ``` new (class MyError extends Error { get message() {return 'message getter'} constructor() { super('message to super') }...

evaluating
new rule

### Description `${` is required to escape in template literal, but there are multiple ways to do ``` `\${`; `$\{`; `\$\{`; ``` Let's enforce escape `$`? ### Examples ```js //...

evaluating
new rule

### Description When `option.indent` is not set, it uses the parent indention, but if the parent is a root expression, if forces space instead of tab. Should guess the indent...

evaluating
change request

### Description Very similar to [no-useless-spread](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md), but I don't think it make sense to add to `no-useless-spread` ### Examples ```js // ❌ const set = new Set(iterator.toArray()); // ✅ const...

evaluating
new rule

### Description Maybe sometimes an assignment should be preferred due to the code size. For example ```js const object = {} object.foo = function () { // the body only...

evaluating
change request

### Description Prevent mistakes ### Examples ```js // ❌ // foo.js import {} from "./foo.js"; import {anything} from "./foo.js"; ``` ```js // ❌ // foo.js export {} from "./foo.js"; export...

evaluating
new rule