New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-filename-rules

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-filename-rules

Enforce filename conventions for linted files

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
124K
decreased by-11.22%
Maintainers
1
Weekly downloads
 
Created

What is eslint-plugin-filename-rules?

The eslint-plugin-filename-rules package is an ESLint plugin that enforces consistent naming conventions for your files. It helps maintain a uniform file structure and naming pattern across your project, which can improve readability and maintainability.

What are eslint-plugin-filename-rules's main functionalities?

Enforce specific filename patterns

This feature allows you to enforce specific patterns for filenames. In this example, the rule enforces that all filenames must be in lowercase and can only contain hyphens.

{
  "rules": {
    "filename-rules/match": ["error", "^[a-z-]+$"]
  }
}

Disallow specific filename patterns

This feature allows you to disallow specific patterns for filenames. In this example, the rule disallows any filenames that contain uppercase letters.

{
  "rules": {
    "filename-rules/no-match": ["error", "[A-Z]"]
  }
}

Enforce specific file extensions

This feature allows you to enforce specific file extensions. In this example, the rule enforces that all files must have a .js extension.

{
  "rules": {
    "filename-rules/match": ["error", ".*\.js$"]
  }
}

Other packages similar to eslint-plugin-filename-rules

FAQs

Package last updated on 13 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc