
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@fastly/eslint-config
Advanced tools
npm install --save-dev \
@fastly/eslint-config@^1.0.0 \
@fastly/prettier-config@^1.0.0 \
eslint-plugin-ember@^5.0.0 \
eslint-config-prettier@^2.9.0 \
eslint-plugin-prettier@^2.4.0 \
eslint@^4.12.1 \
prettier@^1.9.2
Currently, @fastly/eslint-config
declares several peerDependencies
because eslint's module-loader is incapable of finding transitive dependencies. See eslint/eslint#3458. When eslint supports transitive plugins, @fastly/eslint-config
can declare true dependencies so consuming projects can install just a single package.
eslint-plugin-ember
is optional. Ember projects should install it. Other projects should not. @fastly/eslint-config
will automatically extend eslint-plugin-ember
if it's installed.
The simplest configuration is to accept the Fastly defaults:
// my-app/.eslintrc.js
extends: ['@fastly'],
This includes
eslint:recommended
plugin:ember/recommended
prettier:recommended
and @fastly/prettier-config
via [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier)
If you want to extend other configurations as well, we recommend extending @fastly
last so it wins:
// my-app/.eslintrc.js
extends: ['airbnb-base', '@fastly'],
And of course, you can always override the Fastly defaults:
// my-app/.eslintrc.js
extends: ['@fastly'],
rules: {
'no-empty': 0
}
This library automatically includes @fastly/prettier-config
as eslint rules, so running eslint
will validate against that configuration. See the @fastly/prettier-config
docs for information about setting up a prettier.config.js
in your project to work with tools like editor plugins.
FAQs
Fastly's default eslint configuration
We found that @fastly/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 31 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.