Socket
Socket
Sign inDemoInstall

eslint-plugin-best-practices

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-best-practices

an eslint plugin to enforce some best practices


Version published
Weekly downloads
3
decreased by-75%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

eslint-plugin-best-practices

an eslint plugin to enforce some best practices

Install

npm install eslint-plugin-best-practices

Usage

// eslintrc.js
module.exports = {
  plugins: ['eslint-plugin-best-practices'],
  rules: {
    'best-practices/explicit-internal-boundaries': ['error']
  },
}

Rules

best-practices/explicit-internal-boundaries

This plugin detects imports from internal directories from non direct parent path. The practice comes from a GO convention, where internal directories are special.

It's fine to import files from an internal directory is on a direct child path, but not when it's a parent or sibling directory.

Keywords

FAQs

Last updated on 19 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc