dukeluo / eslint-plugin-check-file

ESLint rules for consistent filename and folder. Allows you to enforce a consistent naming pattern for the filename and folder.

Home Page:https://www.npmjs.com/package/eslint-plugin-check-file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Next.js pages router naming case for file name

Nirajn2311 opened this issue · comments

Currently folder names are checked with the NEXT_JS_APP_ROUTER_CASE value to be in line with Next.js app routers naming conventions. Similarly can it also be added to the file naming convention rule as those also need to be inline with the same naming Next.js conventions but for pages router

commented

I think KEBAB_CASE can do these things you said for files in nextjs app router project, so i havent add a new naming convention for the rule filename-naming-convention.

My bad, I was thinking of the pages router and got them muddled up when creating the issue.