eslint-plugin-filename-rules
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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()]; |
{ | ||
"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 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6242
59