Huge News!Announcing our $40M Series B led by Abstract Ventures.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 - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

lib/match.js

@@ -21,2 +21,7 @@ const path = require('path');

aliases.PascalCase = aliases.pascalcase;
aliases.camelCase = aliases.camelcase;
aliases.snake_case = aliases.snakecase;
aliases['kebab-case'] = aliases.kebabcase;
const getRegex = (value, filename) => {

@@ -23,0 +28,0 @@ if (value instanceof RegExp) return [value, value.toString()];

2

package.json
{
"name": "eslint-plugin-filename-rules",
"version": "1.0.0",
"version": "1.1.0",
"description": "Enforce filename conventions for linted files",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -33,3 +33,3 @@ # eslint-plugin-filename-rules

The following built-in values are supported: `'pascalcase'`, `'camelcase'`, `'snakecase'`, `'kebabcase'`. You can also provide your own regex:
The following built-in values are supported: `pascalcase`/`PascalCase`, `camelcase`/`camelCase`, `snakecase`/`snake_case`, `kebabcase`/`kebab-case`. You can also provide your own regex:

@@ -46,3 +46,3 @@ ```js

...
'filename-rules/match': [2, { '.js': 'camelcase', '.ts': /^([a-z]+-)*[a-z]+(?:\..*)?$/ }],
'filename-rules/match': [2, { '.js': 'camelCase', '.ts': /^([a-z]+-)*[a-z]+(?:\..*)?$/ }],
...

@@ -49,0 +49,0 @@ ```

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