Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
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
The npm package eslint-plugin-nada receives a total of 89 weekly downloads. As such, eslint-plugin-nada popularity was classified as not popular.
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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.