Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
eslint-config-silence
Advanced tools
Eslint config for code-quality, prevent possible errors and follow best practices
Prettier does only focus on formatting rules like comma-style
and does nothing to help with code-quality.
eslint-config-silence
does not regulate code style rules, but focuses on:
Prevent possible errors (e.g. no-cond-assign
, no-unreachable
)
Recommends best practices (e.g. no-eval
, no-extend-native
)
Code Smell Detection (e.g. no-duplicated-branches
, no-identical-functions
)
Forces the use of ES6+ features (e.g. no-var
, prefer-const
, prefer-spread
)
Warnings you that complexity of the code is exceeded:
"complexity": ["warn", 20],
"max-depth": ["warn", 4],
"max-lines": ["warn", 300],
"max-params": ["warn", 3],
npm install -D eslint-config-silence
Add this to your .eslintrc file:
{
"extends": ["eslint-config-silence"]
}
Note: You can also omit the eslint-config-
For TypeScript projects you can also use the additional config:
{
"extends": ["silence/typescript"]
}
This config includes only extension rules. These rules have the same functionality but also support TypeScript.
FAQs
Eslint config for code-quality, prevent possible errors and follow best practices
The npm package eslint-config-silence receives a total of 0 weekly downloads. As such, eslint-config-silence popularity was classified as not popular.
We found that eslint-config-silence 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.