Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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`
The npm package eslint-import-resolver-exports receives a total of 46,942 weekly downloads. As such, eslint-import-resolver-exports popularity was classified as popular.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.