Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/eslint-plugin

Package Overview
Dependencies
Maintainers
3
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/eslint-plugin

Backstage ESLint plugin

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@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.
@backstage/no-top-level-material-ui-4-importsForbid top level import from Material UI v4 packages.

FAQs

Package last updated on 15 Oct 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc