ESLint rules for consistent filename and folder. Allows you to enforce a consistent naming pattern for the filename and folder.
APACHE-2.0 License
Published by dukeluo 8 months ago
filename-blocklist
can set the suggested glob pattern as empty string when errorMessage
is set (#36)Published by dukeluo 8 months ago
Thanks @AtlasTom (#34)
filename-naming-convention
can set errorMessage
property to customize the error messagefilename-blocklist
can set errorMessage
property to customize the error messagePublished by DukeLuo about 1 year ago
Thanks @leepowellnbs (#31)
NEXT_JS_APP_ROUTER_CASE
can support Next.js Private FoldersPublished by DukeLuo about 1 year ago
Published by DukeLuo about 1 year ago
Node.js 14 support will be removed in next major version.
Published by DukeLuo over 1 year ago
Thanks to @milos-sikic-nimbus-tech
folder-naming-convention
can be used with a new built-in naming convention NEXT_JS_APP_ROUTER_CASE
NEXT_JS_APP_ROUTER_CASE
is useful for Next.js App Router projects. Click here to learn more.
Published by DukeLuo over 1 year ago
folder-naming-convention
can work well with *
in the glob #25no-index
can ignore middle extensions #26Published by DukeLuo over 1 year ago
folder-naming-convention
can use a pattern with multiple matchers to select target folders #21filename-blocklist
should report an error when blocklist pattern object isn't an object typefilename-naming-convention
should report an error when naming pattern object isn't an object typefolder-match-with-fex
should report an error when naming pattern object isn't an object typefolder-naming-convention
should report an error when naming pattern object isn't an object typePublished by DukeLuo over 1 year ago
Thanks to @ratierd #17
filename-naming-convention
can use prefined match syntaxPublished by DukeLuo over 1 year ago
Thanks to @jbkey23 #18
filename-blacklist
can specify the target file by its file pathfilename-blacklist
can specify the target file by its filenamePublished by DukeLuo over 1 year ago
Thanks to @jbkey23 #16
filename-blacklist
renamed to filename-blocklist
filename-naming-convention
show filename without path in error messagefilename-naming-convention
can specify the target file by its extensionIn this version, there have been some incompatible changes. Here is what you need to know:
filename-blacklist
need to renamed to filename-blocklist
filename-naming-convention
cann't specify the target file by its extension any more. Please select your target files by their file path. For example, using **/*.js
instead of *.js
to select all js files.Published by DukeLuo almost 2 years ago
CAMEL_CASE
glob expression #14Published by DukeLuo almost 2 years ago
Thanks to @florianehmke #11
filename-blacklist
can blacklist file names by patternPublished by DukeLuo about 2 years ago
SNAKE_CASE
, KEBAB_CASE
and SCREAMING_SNAKE_CASE
glob expressionsPublished by DukeLuo over 2 years ago
Published by DukeLuo over 2 years ago
eslint
is worked with processorsPublished by DukeLuo over 2 years ago
filename-naming-convention
can specify the target file by its file pathfilename-naming-convention
can set ignoreMiddleExtensions
property to ignore middle extensions when matching naming patternPlease Note: When using the rule filename-naming-convention
, please specify the target file by its file path, the compatible feature of specifying the target file by extension will be removed in the future.
Published by DukeLuo over 2 years ago
Add 1 rule:
Published by DukeLuo almost 3 years ago
Add 3 rules: