![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@another_works/namelint
Advanced tools
namelint is a tool that creates rules for code and file naming conventions and automatically detects them. The mission of this tool is to free you from the hassle of checking naming conventions in code reviews.
namelint is a tool that creates rules for code and file naming conventions and automatically detects them. The mission of this tool is to free you from the hassle of checking naming conventions in code reviews.
$ npm install namelint --save-dev
Place a file named namelint.json in the root folder
$ touch namelint.json
$ ./node_modules/.bin/namelint
{
"rules": [
{
"dir": "src/consts",
"test": [
{
"type": "namespace",
"regex": ".+Consts$"
},
{
"type": "filename",
"regex": ".+Consts.ts$"
},
{
"type": "filenameInCode"
}
]
}
]
}
"dir"
is target directory"test"
is Inspection Items"type"
is filename
or classname
or namespace
or functionname
or filenameInCode
"regex"
is regular expression textCheck if the filename matches the regex.
Check if the classname matches the regex.
Check if the namespace matches the regex.
Check if the functionname matches the regex.
Whether the file name is used in the code or not case-insensitive
FAQs
namelint is a tool that creates rules for code and file naming conventions and automatically detects them. The mission of this tool is to free you from the hassle of checking naming conventions in code reviews.
The npm package @another_works/namelint receives a total of 41 weekly downloads. As such, @another_works/namelint popularity was classified as not popular.
We found that @another_works/namelint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.