Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEXT_JS_APP_ROUTER_CASE should accept /app/rss.xml/route.ts #53

Open
stefanprobst opened this issue Nov 29, 2024 · 1 comment
Open

NEXT_JS_APP_ROUTER_CASE should accept /app/rss.xml/route.ts #53

stefanprobst opened this issue Nov 29, 2024 · 1 comment

Comments

@stefanprobst
Copy link

Describe the bug

i am using the built-in NEXT_JS_APP_ROUTER_CASE pattern for the "folder-naming-convention" rule and get a lint error for /app/rss.xml/route.ts, which is a valid next.js route path.

Expected behavior

NEXT_JS_APP_ROUTER_CASE should accept /app/rss.xml/route.ts

Plugin configuration

import checkFilePlugin from "eslint-plugin-check-file";

const config = [
  {
    plugins: {
      "check-file": checkFilePlugin,
    },
    rules: {
      "check-file/filename-naming-convention": [
        "error",
        {
          "**/*": "KEBAB_CASE",
        },
        { ignoreMiddleExtensions: true },
      ],
      "check-file/folder-naming-convention": [
        "error",
        {
          "**/": "NEXT_JS_APP_ROUTER_CASE",
        },
      ],
    },
  },
];

Project structure

.
└── app
    └── rss.xml
        └── route.ts

Desktop (please complete the following information):

  • OS: linux
@dukeluo
Copy link
Owner

dukeluo commented Dec 7, 2024

@stefanprobst thanks for reporting it, will check it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants