Socket
Socket
Sign inDemoInstall

eslint-import-resolver-parcel

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-import-resolver-parcel

Parcel import resolution plugin for eslint-plugin-import.


Version published
Weekly downloads
336
increased by7.69%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-import-resolver-parcel

About

Parcel import resolution plugin for eslint-plugin-import. This allows for eslint/import to work with parcel's module resolution.

Installation

npm install eslint-import-resolver-parcel -D

Usage

Add this to your eslint config:

settings: {
  'import/resolver': 'parcel'
}

Current status

  • Relative paths (import foo from '../foo.js')
  • Absolute paths (import _ from 'lodash')
  • Tilde paths (import foo from '~/foo.js')
  • Root paths* (import foo from '/foo.js')
  • Aliasing
*About Root Paths

Because root paths require knowledge of the entry points, you must pass in the folder where the entry points are located into the config:

settings: {
  'import/resolver': {
    parcel: {
      rootDir: 'src' // wherever your entrypoints are located
    }
  }
}

Keywords

FAQs

Package last updated on 03 Nov 2018

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