You can use ignore option of that rule.

.eslintrc

...
rules: {
    ...
    "unicorn/filename-case": [
       "error",
       {
           "case": "kebabCase",
           "ignore": [
               /pages/.*\.js$/
           ]
       }
    ]
}
...
Answer from kolurbo on Stack Overflow
🌐
npm
npmjs.com › package › eslint-plugin-unicorn
eslint-plugin-unicorn - npm
February 10, 2026 - import eslintPluginUnicorn from 'eslint-plugin-unicorn'; import globals from 'globals'; export default [ { languageOptions: { globals: globals.builtin, }, plugins: { unicorn: eslintPluginUnicorn, }, rules: { 'unicorn/better-regex': 'error', 'unicorn/…': 'error', }, }, // …
      » npm install eslint-plugin-unicorn
    
Published   Feb 10, 2026
Version   63.0.0
Author   Sindre Sorhus
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › releases
Releases · sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author   sindresorhus
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › issues
sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author   sindresorhus
🌐
npm
npmjs.com › search
eslint-plugin-unicorn - npm search
Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.
🌐
jsDelivr
jsdelivr.com › package › npm › eslint-plugin-unicorn
eslint-plugin-unicorn CDN by jsDelivr - A CDN for npm and GitHub
September 20, 2016 - A free, fast, and reliable CDN for eslint-plugin-unicorn. More than 100 powerful ESLint rules
Published   Sep 20, 2016
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › docs › rules › filename-case.md
eslint-plugin-unicorn/docs/rules/filename-case.md at main · sindresorhus/eslint-plugin-unicorn
Ignore some files when you use eslint-plugin-markdown, for example README.md. Some tools may require special names for some files. Don't forget that you must escape special characters that you don't want to be interpreted as part of the regex, for example, if you have [ in the actual filename. For example, to match [id].js, use /^\[id]\.js$/ or '^\\[id]\\.js$'. "unicorn/filename-case": [ "error", { "case": "kebabCase", "ignore": [ "^FOOBAR\\.js$", "^(B|b)az", "\\.SOMETHING\\.js$", /^vendor/i ] } ]
Author   sindresorhus
Find elsewhere
🌐
SourceForge
sourceforge.net › projects › eslint-plugin-unicorn.mirror
eslint-plugin-unicorn download | SourceForge.net
Download eslint-plugin-unicorn for free. More than 100 powerful ESLint rules. More than 100 powerful ESLint rules. You might want to check out XO, which includes this plugin.
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › docs › rules › no-array-for-each.md
eslint-plugin-unicorn/docs/rules/no-array-for-each.md at main · sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author   sindresorhus
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › docs › rules › prefer-includes.md
eslint-plugin-unicorn/docs/rules/prefer-includes.md at main · sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author   sindresorhus
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › docs › rules › no-for-loop.md
eslint-plugin-unicorn/docs/rules/no-for-loop.md at main · sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author   sindresorhus
🌐
UNPKG
app.unpkg.com › eslint-plugin-unicorn@23.0.0 › files › readme.md
eslint-plugin-unicorn
[**Propose or contribute a new rule ➡**](.github/contributing.md) ## Install ```console $ npm install --save-dev eslint eslint-plugin-unicorn ``` ## Usage Configure it in `package.json`. ```json { "name": "my-awesome-project", "eslintConfig": { "env": { "es6": true }, "parserOptions": { "ecmaVersion": 2021, "sourceType": "module" }, "plugins": [ "unicorn" ], "rules": { "unicorn/better-regex": "error", "unicorn/catch-error-name": "error", "unicorn/consistent-function-scoping": "error", "unicorn/custom-error-definition": "off", "unicorn/error-message": "error", "unicorn/escape-case": "error",
🌐
npm
npmjs.com › package › unicorn
unicorn - npm
May 31, 2013 - Unicorn extends the String class to add his features so you don't need to save a reference to it.
      » npm install unicorn
    
Published   May 31, 2013
Version   0.0.1
Author   Rafael Rinaldi
🌐
ESLint
eslint.org › docs › latest › use › integrations
Integrations - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
🌐
Tessl
tessl.io › registry › tessl › npm-eslint-plugin-unicorn › 60.0.0
tessl/npm-eslint-plugin-unicorn@60.0.x - Registry - Tessl
January 29, 2026 - ESLint Plugin Unicorn is a comprehensive ESLint plugin that provides 134 powerful ESLint rules for enforcing code quality, consistency, and modern JavaScript best practices.
🌐
Reddit
reddit.com › r/reactjs › what are some (niche?) eslint rules you couldn't live without?
r/reactjs on Reddit: What are some (niche?) ESLint rules you couldn't live without?
June 24, 2020 -

Recently created my own eslint config and stumbled across https://github.com/sindresorhus/eslint-plugin-unicorn which has a few reasonable rules in there that have the potential to massively contribute to code quality, e.g. prefer-array-find, prefer-modern-dom-apis.

I was also unaware of https://github.com/testing-library/eslint-plugin-testing-library as well as the included eslint-plugin-jest which... should definitely have your attention if you use testing-library and/or jest.

https://github.com/benmosher/eslint-plugin-import also has import/order which may alphabetically group your imports, improving readability.

Anything else I've been missing out on?

🌐
LibHunt
libhunt.com › compare-sindresorhus--meta-vs-eslint-plugin-unicorn
meta vs eslint-plugin-unicorn - compare differences and reviews? | LibHunt
Incrementally fixing lots of ESlint errors in a clean way with ESlint Nibble ... Recently, we chose to add the Unicorn plugin, which contain dozens of ESlint rules. It can feel overwhelming at first because it triggers hundreds of errors.