
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
eslint-plugin-nada
Advanced tools
Enforces full path, folder and file names to match desired case style
// Errors for rule: kebabCase
myFileFolder/my-file-name.js // file path
// Ok for rule: kebabCase
my-file-folder/my-file-name.js // file path
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-nada:
$ npm install eslint-plugin-nada --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-nada globally.
Add nada to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"nada"
]
}
Then configure the rules you want to use under the rules section.
First param is the severity level as per eslint standards, where: 0 = off, 1 = warn, 2 = error
{
"rules": {
"nada/path-case": [2, {"case": "kebabCase"}]
}
}
Enforces full path, folder and file names to match desired case style.
kebabCase, camelCase and snakeCase.Example:
{
"rules": {
"nada/path-case": [{"case": "kebabCase"}]
}
}
my-file.spec.js or my-file.test.js.Example:
{
"rules": {
"nada/path-case": [
{
"case": "kebabCase",
"ignoreParts": [".test", ".spec"]},
]
}
}
feat: your new feature summary or fix: annoying bug that was killing me.
Here are further commit examples: https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelinesFAQs
enforces folder and file names to match desired case style
We found that eslint-plugin-nada 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.