
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@inversifyjs/eslint-plugin-require-extensions
Advanced tools
ESLint plugin to enforce file extensions in ESM imports and exports
ESLint plugin to enforce file extensions in ESM imports and exports.
pnpm add -D @inversifyjs/eslint-plugin-require-extensions
Add the plugin to your ESLint configuration:
import requireExtensions from '@inversifyjs/eslint-plugin-require-extensions';
export default [
{
plugins: {
'require-extensions': requireExtensions,
},
rules: {
'require-extensions/require-extensions': 'error',
'require-extensions/require-index': 'error',
},
},
];
Enforces that all relative imports and exports include a file extension.
Enforces that directory imports and exports include an index file (e.g., ./foo becomes ./foo/index.js). This rule ensures that when importing from a directory, the path explicitly ends with /index.js (or the appropriate extension).
This rule is auto-fixable and accepts no configuration options.
MIT
FAQs
ESLint plugin to enforce file extensions in ESM imports and exports
The npm package @inversifyjs/eslint-plugin-require-extensions receives a total of 49 weekly downloads. As such, @inversifyjs/eslint-plugin-require-extensions popularity was classified as not popular.
We found that @inversifyjs/eslint-plugin-require-extensions demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.