
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@corva/eslint-config-node
Advanced tools
Defines global linting rules for Corva.AI Node.js projects.
npm install husky standard-version -D
npm pkg set scripts.prepare="husky install"
npm pkg set scripts.release="git add -A && standard-version -a"
npm pkg set scripts.release-rc="git add -A && standard-version -a --prerelease rc --skip.changelog"
npm run prepare
# Install
npm i -D @corva/eslint-config-node
# OR
yarn add -D @corva/eslint-config-node
# Add eslint config
echo "module.exports = {'extends': '@corva/eslint-config-node'};" > .eslintrc.js
# Add prettier config
echo "\"@corva/eslint-config-node/prettier\"" > .prettierrc
or add a .eslintrc.js
file in the root of your project and extended it with the default config:
module.exports = {
extends: '@corva/eslint-config-node',
};
and .prettierrc
:
"@corva/eslint-config-node/prettier"
Add dependencies:
npm i -D @commitlint/cli @commitlint/config-conventional
Add config:
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > .commitlintrc.js
For husky <=v4
add following in your package.json:
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
For husky >= v5
:
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'
Add dependencies:
npm i -D lint-staged
Add config to package.json
:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"lint-staged": {
"*.{js,ts}": "npm run lint:fix"
}
}
For husky <=v4
add following in your package.json:
{
"husky": {
"hooks": {
"pre-commit": "npx lint-staged"
}
}
}
For husky >= v5
:
npx husky add .husky/pre-commit 'npx lint-staged'
FAQs
Defines global linting rules for Corva.AI node.js projects
We found that @corva/eslint-config-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.