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

While I know this cannot simply be added to the checks for `dependencies` and `devDependencies` (since the same package name may be used though with a version independent of them),...

enhancement
evaluating

This is an unfunded request, but thought others might also be interested to have to-dos, somewhat akin to its existing `engines` checks for Node but which instead allowed `browserslist` queries,...

enhancement
evaluating

Autofix for `unicorn/prevent-abbreviations` must either don't touch function parameters or rename them in JSDoc when it exists or it will break a code (the JSDoc based type check, documentation, etc).

enhancement
help wanted

Grepping the docs for "ignore" and "check" I find these option names: * With "ignore": * * `expiring-todo-comments`: * * * `ignoreDatesOnPullRequests` * * `import-index`: * * * `ignoreImports` *...

enhancement
help wanted
docs

- Replace `__dirname` and `__filename` with them. - Replace `const __dirname = path.dirname(fileURLToPath(import.meta.url));` with them.

enhancement
help wanted

Currently, your rule doesn't catch a lot of cases and I use builtin `no-restricted-syntax` to forbid `.keyCode` ```ts function handleKeyDown(event: KeyboardEvent) { if (event.metaKey && event.keyCode === 75 && inputRef.current)...

enhancement
help wanted

the below cases currently not reported ```js if ( uri.match(/unicorn/).length || uri.match(/unicorn/).length > 0 || uri.match(/unicorn/)?.length || uri.match(/unicorn/)?.length > 0 ) { } ```

enhancement
help wanted

I find my team member (front end newbie) will write code like this: ``` Object.assign(obj1, { ...obj2 }); ```

enhancement
evaluating

## Element to improve in the docs ### A - Application of the rule By simply reading the [docs] it isn't clear if that rule applies only to the import...

docs

`eslint-plugin-unicorn` has 63 transitive dependencies: https://npm.anvaka.com/#/view/2d/eslint-plugin-unicorn 39 of them come from `read-pkg-up`: https://npm.anvaka.com/#/view/2d/read-pkg-up This functionality isn't super complicated and could probably be done without any dependencies. E.g. here's Vite's implementation,...

performance