Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
eslint-config-ts-mailonline
Advanced tools
eslint-config-ts-mailonline
MailOnline ESlint Typescript configuration.
eslint-config-ts-mailonline
, eslint
, typescript
, prettier
, husky
, and pretty-quick
as development dependencies:yarn add --dev eslint-config-ts-mailonline eslint typescript prettier husky pretty-quick
tsconfig.eslint.json
file (this is a technicality due to the way the eslint typescript parser works):{
"compilerOptions": {"strict": true},
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "dist", "coverage"]
}
.eslintrc.json
) that extends ts-mailonline
:{
"extends": ["ts-mailonline", "ts-mailonline/react"],
"parserOptions": {
"project": "./tsconfig.eslint.json"
}
}
prettier.config.js
on the root of your project with these contents:module.exports = require('eslint-config-ts-mailonline/prettier');
.eslintignore
file:bin/
dist/
coverage/
dev/
node_modules/
*.css.d.ts
package.json
:{
"lint": "tsc --noEmit && eslint './**/*.{js,jsx,ts,tsx}'"
}
pretty-quick --staged && yarn run lint
Any changes to this package that might cause code using it to not validate anymore, will be a semver-major change.
FAQs
ESLint TS config for MailOnline
We found that eslint-config-ts-mailonline demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.