fisker Cheung
fisker Cheung
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/0f6048c4f66ea65caf24be40d88631daf0d0d234/rules/consistent-function-scoping.js#L161-L162 Need wait for https://github.com/eslint/eslint/issues/19495
### Description This rule actually makes sense to JavaScript users, but it's disabled due to compatibility with TypeScript, how about rename to `consistent-json-file-read`, and default to read as `string`, but...
### Description - Forbid access member from new expression. - Forbid complex constructor. These cases may confuse new beginners. ### Fail ```js const bar = new Foo().getBar(); ``` ```js const...
Currently, we only report cases that `Array` only called `.includes()`. But in some other cases, it should still be preferred. ```js const foo = [1, 2, 3]; if (foo.includes(1)); //...
Eg: `quotes` (deprecated, just use it as an example) ```js prettierCompatibleQuote('error', {singleQuote: true}) // ['error', 'single', { "avoidEscape": true, "allowTemplateLiterals": false }] ``` ```js prettierCompatibleQuote('warn', {singleQuote: false}) // ['warn', 'double',...
### Suggestion I don't think [pass `--fix`](https://github.com/typescript-eslint/typescript-eslint/blob/e57126a23e3f9b0ec67665d47e37a429d7755753/package.json#L37) to https://github.com/typescript-eslint/typescript-eslint/blob/e57126a23e3f9b0ec67665d47e37a429d7755753/package.json#L41 is correct. ### Additional Info _No response_
## PR Checklist - [ ] Addresses an existing open issue: fixes #000 - [ ] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22) - [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken...
### Before You File a Proposal Please Confirm You Have Done The Following... - [x] I have [searched for related issues](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+label%3A%22enhancement%3A+plugin+rule+option%22) and found none that match my proposal. - [x]...
### Before You File a Proposal Please Confirm You Have Done The Following... - [x] I have [searched for related issues](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+label%3A%22enhancement%3A+plugin+rule+option%22) and found none that match my proposal. - [x]...
Change the test case to an object, use `options` instead of `context`. Support `{only: true}` for easier to debug ONE case.