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

eslint-plugin-path

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-path

An ESLint plugin for enforcing consistent imports across project. In other words, it helps to replace all relatives import with absolutes dependinng on settings.

  • 1.4.0-beta.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
decreased by-49.8%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-plugin-path code style: prettier

An ESLint plugin for enforcing consistent imports across project. In other words, it helps to replace all relatives import with absolutes dependinng on settings.

Installation

# npm
npm install eslint-plugin-path --save-dev

# yarn
yarn add eslint-plugin-path --dev

Configuration

Enable the rules in your ESLint configuration file:

{
  "plugins": ["path"],
  "rules": {
    "path/no-relative-imports": "error",
  }
}

Or add the "recommended" preset:

{
  "extends": ["plugin:path/recommended"]
}

Rules

✔ included in the "recommended" preset

🔧 fixable using the --fix command line option

NameDescription
🔧no-relative-importsdisallow relative imports of files where absolute is preferred

Presets

  • recommended enables rules recommended for all users
  • all enables all rules

License

MIT

Keywords

FAQs

Package last updated on 21 Jun 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