![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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 22,358 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.