Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@logicsoftware/eslint-plugin-ep-custom
Advanced tools
This package includes custom eslint rules for EP application.
The package is stored at npm registry. To add it into an existing project, use the npm CLI:
npm i @logicsoftware/eslint-plugin-ep-custom
If you modify the source code in src
folder, run npm run build
to update the dist folder. ESlint only works
with .js
code, so it's necessary to compile typescript source to javascript. Publish the changes to the npm registry.
This rule checks whether the module uses files from other "feature". Feature are calculated as a folder in baseUri
(e.g. src/Scripts
).
In .eslintrc.js
file, add the following configuration to exports.overrdes
section (with corresponding file masks):
{
"rules": {
"@logicsoftware/ep-custom/no-cross-feature-imports": [
"error",
{
ignoreFeatures: [
// ...
],
allowedImports: [
// ...
],
aliases: {
// ...
},
baseUrl: "..."
}
]
}
}
baseUri
- the base URI of the project (src/Scripts
)ignoreFeatures
- all files from within ignored features will be ignored by the ruleallowedImports
- all imports from within allowed features will be allowed by the rulealiases
- map of aliases to be used by webpack/ts/jest module loader.{
ignoreFeatures: ["app", "Tests", "QUnit"],
allowedImports: ["common", "const", "EasyProjects" ],
aliases: {
"~": "."
},
baseUrl: "src/Scripts/"
}
FAQs
Custom eslint rules for EP application
The npm package @logicsoftware/eslint-plugin-ep-custom receives a total of 61 weekly downloads. As such, @logicsoftware/eslint-plugin-ep-custom popularity was classified as not popular.
We found that @logicsoftware/eslint-plugin-ep-custom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.