New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@backstage/eslint-plugin

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/eslint-plugin

Backstage ESLint plugin

  • 0.0.0-nightly-20230209023017
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created

@backstage/eslint-plugin

A collection of ESLint rules useful to Backstage projects.

Usage

This ESLint plugin is part of the default lint configuration provided by the Backstage CLI, so you generally do not need to install it manually.

If you do wish to install this plugin manually, start by adding it as a development dependency to your project:

yarn add --dev @backstage/eslint-plugin

Then add it to your ESLint configuration:

extends: [
  'plugin:@backstage/recommended',
],

Alternatively, if you want to install in individual rules manually:

plugins: [
  '@backstage',
],
rules: {
  '@backstage/no-forbidden-package-imports': 'error',
}

Rules

The following rules are provided by this plugin:

RuleDescription
@backstage/no-forbidden-package-importsDisallow internal monorepo imports from package subpaths that are not exported.
@backstage/no-relative-monorepo-importsForbid relative imports that reach outside of the package in a monorepo.
@backstage/no-undeclared-importsForbid imports of external packages that have not been declared in the appropriate dependencies field in package.json.

FAQs

Package last updated on 09 Feb 2023

Did you know?

Socket

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.

Install

Related posts