
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@grafana/eslint-config
Advanced tools
Grafana's ESLint config.
yarn add @grafana/eslint-config --dev
or:
npm install @grafana/eslint-config --save-dev
Don't forget to install peerDependencies.
npm info "@grafana/eslint-config@latest" peerDependencies
If using npm 5+, use this command:
npx install-peerdeps --dev @grafana/eslint-config
If using a different package manager, run npm info "@grafana/eslint-config@latest" peerDependencies
to list the peer dependencies and versions. Then run yarn add --dev <dependency1>@<version> <dependency2>@<version> <dependency3>@<version>
for the listed peer dependencies.
From v8.21.0, Eslint introduced a new flat config system where eslint.config.js
replaces .eslintrc*
as the default config file name. Eslint@8.x supports both systems, while Eslint@9.x only supports the new flat config.
A guide on how to migrate to a flat config can be found here.
The following official blog posts are available for interested parties:
This package contains a single flat config object which can be imported like so:
const grafanaConfig = require("@grafana/eslint-config/flat");
/**
* @type {Array<import('eslint').Linter.Config>}
*/
module.exports = [
...grafanaConfig,
… /* rest of your config */
];
You are then free to add/override properties.
Note: Our shareable configs does not preconfigure files
, ignore
, or languageOptions.globals
. For most of the cases, you probably want to configure some properties for your project.
const grafanaConfig = require("@grafana/eslint-config/flat");
/**
* @type {Array<import('eslint').Linter.Config>}
*/
module.exports = [
{
ignores: [".github", ".yarn", "**/build/", "**/compiled/", "**/dist/"],
},
...grafanaConfig,
{
name: "myproject/defaults",
files: ["**/*.{ts,tsx,js,jsx}"],
rules: {
// add custom rules here.
},
},
];
Extend our configuration to get reasonable defaults:
{
"extends": ["@grafana/eslint-config"]
}
It will automatically handle *.(js|ts|tsx)
files.
FAQs
Grafana's ESLint config
The npm package @grafana/eslint-config receives a total of 68,037 weekly downloads. As such, @grafana/eslint-config popularity was classified as popular.
We found that @grafana/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.