Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
eslint-config-dhis2
Advanced tools
ESLint config for DHIS2 JS projects, based on AirBnB's eslint config
The single source for your JS code style rules.
This is a config for ESLint.
The current styleguide is based on the AirBnB styleguide. Refer to the AirBnb config file for a view on what this config is based on.
The DHIS2 JS Styleguide differs on a few points which are configured in our own config as overrides
For a more thorough description of the style guide, refer to the AirBnB guide
npm install --save-dev eslint-config-dhis2
or with yarn
yarn add eslint-config-dhis2
Then add a linting npm script to package.json, "scripts" section:
"scripts": {
"lint": "eslint src"
}
When you install this package, a node script called lintchangedfiles.js will be added to the node_modules/.bin directory. This script runs eslint on only the changed and untracked files. This is useful for targeting the most relevant files when working on large projects that have lots of errors. To run the script:
./node_modules/.bin/lintchangedfiles.js
If you prefer, you can also add an npm script to your project for this. For example:
"scripts": {
"lint": "eslint src",
"lint-changed": "lintchangedfiles.js"
}
FAQs
ESLint config for DHIS2 JS projects, based on AirBnB's eslint config
The npm package eslint-config-dhis2 receives a total of 3 weekly downloads. As such, eslint-config-dhis2 popularity was classified as not popular.
We found that eslint-config-dhis2 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.