
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
eslint-plugin-xo
Advanced tools
ESLint rules for XO
This plugin is bundled with XO, but can still be useful if you don't use XO.
$ npm install --save-dev eslint eslint-plugin-xo
Configure it in package.json
.
{
"name": "my-awesome-project",
"eslintConfig": {
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"plugins": [
"xo"
],
"rules": {
"xo/catch-error-name": ["error", {"name": "err"}],
"xo/explicit-length-check": "error",
"xo/filename-case": ["error", {"case": "kebabCase"}],
"xo/no-abusive-eslint-disable": "error",
"xo/no-process-exit": "error",
"xo/throw-new-error": "error"
}
}
}
length
property of a value.eslint-disable
comments.process.exit()
.new
when throwing an error. (fixable)This plugin exports a recommended
config that enforces good practices.
Enable it in your package.json
with the extends
option:
{
"name": "my-awesome-project",
"eslintConfig": {
"plugins": [
"xo"
],
"extends": "plugin:xo/recommended"
}
}
See the ESLint docs for more information about extending config files.
Note: This config will also enable the correct parser options and environment.
MIT © Sindre Sorhus
FAQs
ESLint rules for XO
The npm package eslint-plugin-xo receives a total of 16,020 weekly downloads. As such, eslint-plugin-xo popularity was classified as popular.
We found that eslint-plugin-xo 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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.