Socket
Socket
Sign inDemoInstall

@nrwl/eslint-plugin-nx

Package Overview
Dependencies
8
Maintainers
1
Versions
1432
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrwl/eslint-plugin-nx

ESLint Plugin for Nx


Version published
Weekly downloads
1.3M
increased by8.46%
Maintainers
1
Created
Weekly downloads
Ā 

Package description

What is @nrwl/eslint-plugin-nx?

The @nrwl/eslint-plugin-nx package provides a set of ESLint rules and configurations specifically designed for Nx workspaces. Nx is a suite of powerful, extensible dev tools to help you architect, test, and build at any scale ā€” integrating seamlessly with modern technologies and libraries while providing a robust CLI, caching, dependency management, and more. This ESLint plugin helps enforce best practices and consistent code standards within an Nx workspace.

What are @nrwl/eslint-plugin-nx's main functionalities?

Enforce Module Boundaries

This rule helps to maintain module boundaries by restricting imports between libraries in an Nx workspace. It can enforce that libraries can only depend on other libraries that are tagged to be dependencies, preventing circular dependencies and ensuring a proper project structure.

{
  "rules": {
    "@nrwl/nx/enforce-module-boundaries": [
      "error",
      {
        "enforceBuildableLibDependency": true,
        "allow": [],
        "depConstraints": [
          { "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
        ]
      }
    ]
  }
}

Ban Project Import

This rule prevents importing from specific projects within the workspace. It's useful for large workspaces where you want to enforce strict boundaries between projects, such as not allowing imports from a specific library or application.

{
  "rules": {
    "@nrwl/nx/ban-project-import": [
      "error",
      {
        "allow": ["my-app/**"]
      }
    ]
  }
}

Other packages similar to @nrwl/eslint-plugin-nx

Readme

Source

Nx - Smart, Extensible Build Framework

CircleCI License NPM Version Semantic Release Commitizen friendly Join the chat at https://gitter.im/nrwl-nx/community Join us @nrwl/community on slack


ESLint Plugin for Nx

What is Nx?

šŸ”Ž Smart, Extensible Build Framework

Nx is a smart and extensible build framework to help you architect, test, and build at any scale ā€” integrating seamlessly with modern technologies and frameworks while providing a distributed graph-based task execution, computation caching, smart rebuilds of affected projects, powerful code generators, editor support, GitHub apps, and more.

Best-in-Class Support for Monorepos

Nx provides distributed graph-based task execution and computation caching.

Nx is smart. It analyzes your workspace and figures out what can be affected by every code change. That's why Nx doesn't rebuild and retest everything on every commit--it only rebuilds what is necessary .

Nx partitions commands into a graph of smaller tasks. Nx then runs those tasks in parallel, and it can even distribute them across multiple machines without any configuration.

Nx also uses a distributed computation cache. If someone has already built or tested similar code, Nx will use their results to speed up the command for everyone else.

Holistic Dev Experience Powered by an Advanced CLI and Editor Plugins

Nx helps scale your development from one team building one application to many teams building multiple frontend and backend applications all in the same workspace. When using Nx, developers have a holistic dev experience powered by an advanced CLI (with editor plugins), capabilities for controlled code sharing and consistent code generation.

Rich Plugin Ecosystem

Nx is an open platform with plugins for many modern tools and frameworks. It has support for TypeScript, React, Angular, Cypress, Jest, Prettier, Nest.js, Next.js, Storybook, Ionic among others. With Nx, you get a consistent dev experience regardless of the tools used.

How to Use

This package is used by the @nrwl/web, @nrwl/react, @nrwl/angular, and @nrwl/node. See https://github.com/nrwl/nx for more information.

Documentation & Resources

Even though Nx isn't technology specific, we provide 3 separate flavours of the documentation site to it make it easier for you to get up and running. For every link below, you will be able to select whether you want your examples to be written in React, Node or Angular.

Quick Start Videos

Courses

Scale React Development with NxNx WorkspacesAdvanced Nx Workspaces

Nx - Scale React Development with Nx video course

Nx Workspaces video course

Nx Advanced Workspaces video course

Videos, Blogs, Books, Examples

Engage with the Core Team and the Community

Keywords

FAQs

Last updated on 07 Sep 2021

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc