Skip to content

Commit 68e791c

Browse files
committedJun 29, 2023
fix: remove overrides for unicorn/filename-case to use the ignore option of the rule
Added the "unicorn/filename-case" rule to ignored some specific files which don't follow this rule. Removed filename specific rule overrides as they are no longer needed after this change. This standardizes filename formats across the project for better readability. Signed-off-by: prisis <d.bannert@anolilab.de>
1 parent 5e68184 commit 68e791c

File tree

1 file changed

+10
-6
lines changed
  • packages/eslint-config/src/config/plugins

1 file changed

+10
-6
lines changed
 

‎packages/eslint-config/src/config/plugins/unicorn.ts

+10-6
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ const config: Linter.Config = {
5454
// TODO: Temporarily disabled as the rule is buggy.
5555
"function-call-argument-newline": "off",
5656

57+
"unicorn/filename-case": [
58+
"error",
59+
{
60+
case: "kebabCase",
61+
ignore: [
62+
/(FUNDING\.yml|README\.md|CHANGELOG\.md|CONTRIBUTING\.md|CODE_OF_CONDUCT\.md|SECURITY\.md|LICENSE\.md|LICENSE|LICENSE\.txt|LICENSE-MIT\.txt|LICENSE-MIT)/,
63+
],
64+
},
65+
],
66+
5767
...global.anolilabEslintConfigUnicornPrettierRules,
5868
},
5969
overrides: [
@@ -63,12 +73,6 @@ const config: Linter.Config = {
6373
"unicorn/prevent-abbreviations": "off",
6474
},
6575
},
66-
{
67-
files: ["FUNDING.yml", "README.md", "CHANGELOG.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "SECURITY.md"],
68-
rules: {
69-
"unicorn/filename-case": "off",
70-
},
71-
},
7276
{
7377
files: ["*.ts", "*.tsx", "*.mts", "*.cts"],
7478
rules: {

0 commit comments

Comments
 (0)
Please sign in to comment.