
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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
The npm package @fastly/eslint-config receives a total of 0 weekly downloads. As such, @fastly/eslint-config popularity was classified as not popular.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.