Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
eslint-plugin-folders
Advanced tools
Adds eslint rules to ensure consistent folder names for your javascript files.
Please note: This plugin will only lint the folder Names of the .js
, .jsx
files you are linting with eslint. It will ignore other files that are not linted with eslint.
This plugin requires a version of eslint>=1.0.0
to be installed as a peer dependency.
Modify your .eslintrc
file to load the plugin and enable the rules you want to use.
{
"plugins": [
"folders"
],
"rules": {
"folders/match-regex": [2, null, "/root/"]
}
}
A rule to enforce a certain file naming convention using a regular expression.
The convention can be configured using a regular expression (the default is camelCase
). Additionally
the root of the project is defined with a second configuration parameter.
"folders/match-regex": [2, "^[a-z_]+$", '/work/']
With these configuration options, any folder beneath the /work/ directory camelCase
will be reported as an error while snake_case
will pass.
FAQs
Eslint rule for consistent folder names.
The npm package eslint-plugin-folders receives a total of 16,567 weekly downloads. As such, eslint-plugin-folders popularity was classified as popular.
We found that eslint-plugin-folders demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.