{"repo":"sindresorhus/eslint-plugin-unicorn","free":true,"listed":false,"github":"https://github.com/sindresorhus/eslint-plugin-unicorn","clone":"git clone https://github.com/sindresorhus/eslint-plugin-unicorn.git","description":"More than 300 powerful ESLint rules","language":"JavaScript","stars":5221,"topics":["unicorns","eslint-rules","eslint-plugin","eslint","eslint-config","linting-rules","xo","javascript","nodejs"],"license":"MIT","category":"dev-tools","readme_excerpt":"eslint-plugin-unicorn More than 300 powerful ESLint rules Most rules target JavaScript and TypeScript, but some also lint CSS, HTML, JSON, Markdown, and YAML when used with the matching ESLint language plugin. Propose a new rule ➡ We do not accept pull requests because of too much AI slop. Install Requires ESLint =10.4 , flat config, and ESM. You might want to check out XO, which includes this plugin. Usage Use a preset config or configure each rule in eslint.config.js . If you don't use a preset, set the same languageOptions as shown below. For TypeScript, scope Unicorn to TypeScript files and configure a TypeScript parser for the same config object: Rules 💼 Configurations enabled in.\\ ✅ Set in the recommended configuration.\\ ☑️ Set in the unopinionated configuration.\\ 🔧 Automatically fixable by the --fix CLI option.\\ 💡 Manually fixable by editor suggestions.\\ 💭 Requires type information. Name Description 💼 🔧 💡 💭 :--------------------------------------------------------------------------------------------------------- :----------------------------------------------------------------------------------------------------------------------------- :--- :- :- :- better-dom-traversing Prefer better DOM traversal APIs. ✅ ☑️ 💡 catch-error-name Enforce a specific parameter name in catch clauses. ✅ 🔧 class-reference-in-static-methods Enforce consistent class references in static methods. ✅ 💡 comment-content Enforce better comment content. 🔧 consistent-arrow-return-style Enf","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/eslint-plugin-unicorn/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}