eslint-plugin-unicorn icon indicating copy to clipboard operation
eslint-plugin-unicorn copied to clipboard

More than 100 powerful ESLint rules

Results 255 eslint-plugin-unicorn issues
Sort by recently updated
recently updated
newest added

### Description I would like to be able to specify whether my empty braces should have a space or not. This could be achieved without breaking changes with an option...

evaluating
new rule

I propose turning off the following rules by default, so that the `recommended` config could act as a baseline which may be extended explicitly: - `unicorn/filename-case` – This goes against...

enhancement
help wanted

### Description It might be a bit niche, but not everyone knows that you can convert an object to a URLSearchParams without a for loop. ### Fail ```js const tokenParams...

enhancement
new rule

Currently, `unicorn/numeric-separators-style` reports an error for this code: ```js // hot code path, precalculate 4 (sqrt(2) - 1) / 3 const kappa = 0.55228474983; // ^^^^^^^^^^^^^ // Invalid group length...

enhancement
help wanted

When `checkExportFrom` is activated in `unicorn/import-style` you get the following error: console: ```shell TypeError: Missing required argument: node. Occurred while linting C:\workspace\herold-solutions\libs\ts\helper\src\lib\enum\http-method.ts:1 Rule: "unicorn/import-style" at SourceCode.getScope (C:\workspace\herold-solutions\node_modules\eslint\lib\source-code\source-code.js:617:19) at ExportNamedDeclaration (C:\workspace\herold-solutions\node_modules\eslint-plugin-unicorn\rules\import-style.js:265:68)...

bug
help wanted

`prefer-array-some` reports error for any `.find()` calls even if it's not array's method ```js class Foo { find() { return "test" } } if (new Foo().find(t => t === "t"))...

bug

## OK ```js function getMozzarella() {} const createPizza = async () => {} const mozzarella = getMozzarella(); const pizza = await createPizza(mozzarella); ``` ## NOT OK ```js const getMozzarella =...

evaluating
new rule
types

It looks like most open issues are to request changes or options to existing rules, so I thought I'd create a template.

Recently someone did a PR where he put something on the `global` object. Something like ```js global.foo = 'bar'; ``` This doesn't feel like a good thing to do. You...

evaluating
new rule