Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
eslint-import-resolver-exports
Advanced tools
`package.json` `exports` field resolver for `eslint-plugin-import`
This package adds package.json#exports
support to eslint-plugin-import
using the resolve.exports package.
Install with npm install -D eslint-import-resolver-exports
and add it as a resolver to your ESLint configuration. You should always include another resolver (e.g. eslint-import-resolver-node
or eslint-import-resolver-typescript
) since this resolver only supports package.json#exports
and not the other Node.js resolution features.
Example config:
module.exports = {
// ... other configuration options
settings: {
"import/resolver": {
typescript: {
project: [__dirname + "/tsconfig.json"],
},
exports: {
// Accepts the same options as the `resolve.exports` package
// See: https://github.com/lukeed/resolve.exports#optionsunsafe
// All optional, default values are shown
// Add "require" field to the conditions
require: false,
// Add "browser" field to the conditions
browser: false,
// List of additional/custom conditions
conditions: [],
// Ignore everything except the `conditions` option
unsafe: false,
},
},
},
};
FAQs
`package.json` `exports` field resolver for `eslint-plugin-import`
We found that eslint-import-resolver-exports 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.