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-problems
Advanced tools
An eslint config that catches problems in your code, without checking style. For use with prettier.
eslint-config-problems
is an ESLint config that doesn't regulate your code style. It only catches actual problems with your code.
It's designed for use with Prettier, the opinionated code formatter.
Rules were chosen based on the following criteria:
eval
with
new Number(13)
if (someCondition) return someValue;
else {
// Do something else
}
The else
block is unneeded, since the if
block contains a return
statement. eslint-config-problems
will point this out to you (or auto-fix with the --fix
option).If you disagree; feel free to open an issue. I'm open to changing rules if you have a good reason.
If I missed a rule that prevents an actual problem or is otherwise in keeping with the general guidelines above, please open an issue as well; I just might add it.
eslint-config-problems
is designed to work with ESLint v9+; if you're still using ESLint v8 or earlier, use eslint-config-problems
v8.0.0.
npm install -D eslint eslint-config-problems
In your eslint.config.js:
import problems from 'eslint-config-problems';
export default [
problems,
{
rules: {
// custom rules
},
},
];
FAQs
An eslint config that catches problems in your code, without checking style. For use with prettier.
The npm package eslint-config-problems receives a total of 0 weekly downloads. As such, eslint-config-problems popularity was classified as not popular.
We found that eslint-config-problems demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.