You can use ignore option of that rule.
.eslintrc
...
rules: {
...
"unicorn/filename-case": [
"error",
{
"case": "kebabCase",
"ignore": [
/pages/.*\.js$/
]
}
]
}
...
Answer from kolurbo on Stack Overflownpm
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
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
Reddit
reddit.com › r/typescript › if i'm using typescript, will eslint-plugin-unicorn conflict with it or can i keep the rule on?
r/typescript on Reddit: if i'm using typescript, will eslint-plugin-unicorn conflict with it or can i keep the rule on?
March 14, 2024 - i use eslint-plugin-unicorn on typescript projects. i turn off most rules, but enjoy a couple. make sure you configure typescript-eslint correct e.g.
CodeSandbox
codesandbox.io › s › eslint-plugin-unicorn-rm1wx
eslint-plugin-unicorn - CodeSandbox
Published Mar 18, 2020
Repository https://codesandbox.io/s/rm1wx
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
Repository https://github.com/rafaelrinaldi/unicorn
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?
Top answer 1 of 3
4
Author of eslint-plugin-testing-library here. You can’t imagine how happy I am to see the plugin mentioned in this post! If you like eslint-plugin-jest you may like https://github.com/dangreenisrael/eslint-plugin-jest-formatting too. If you use emotion, it took me a while to realize they have an ESLint plugin https://github.com/emotion-js/emotion/tree/master/packages/eslint-plugin-emotion
2 of 3
3
"no-restricted-syntax": [ "warn", { "selector": "JSXText[value=/\\w/]", "message": "Use 't(...)' instead of literal text in JSX" } ] https://github.com/excalidraw/excalidraw/blob/master/.eslintrc.json
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.