
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
eslint-import-resolver-parcel
Advanced tools
Parcel import resolution plugin for eslint-plugin-import.
Parcel import resolution plugin for eslint-plugin-import. This allows for eslint/import to work with parcel's module resolution.
npm install eslint-import-resolver-parcel -D
Add this to your eslint config:
settings: {
'import/resolver': 'parcel'
}
import foo from '../foo.js'
)import _ from 'lodash'
)import foo from '~/foo.js'
)import foo from '/foo.js'
)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
}
}
}
If not specified, it will assume process.cwd()
(where eslint
is called from, probably where the package.json
is located).
If you want to automatically add extra extensions to resolve to, e.g., test-file
resolves to test-file.ts
, just pass in an array to the extensions
key of the config.
settings: {
'import/resolver': {
parcel: {
extensions: ['.ts'] // whatever extra extensions you want to look for
}
}
}
Current default extensions are .js
and .jsx
.
FAQs
Parcel import resolution plugin for eslint-plugin-import.
The npm package eslint-import-resolver-parcel receives a total of 187 weekly downloads. As such, eslint-import-resolver-parcel popularity was classified as not popular.
We found that eslint-import-resolver-parcel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.