Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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.
Extend our configuration to get reasonable defaults:
{
"extends": ["@grafana/eslint-config"]
}
It will automatically handle *.(js|ts|tsx)
files.
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,
},
];
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.
},
},
];
8.0.0
FAQs
Grafana's ESLint config
The npm package @grafana/eslint-config receives a total of 13,280 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 22 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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.