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-kouts
Advanced tools
Custom ESLint and Prettier config with sensible defaults
npm i -D eslint prettier@2 eslint-config-kouts eslint-config-standard eslint-plugin-html eslint-plugin-import eslint-plugin-n
eslint-plugin-promise eslint-plugin-vue eslint-plugin-prettier eslint-config-prettier eslint-plugin-sort-imports-es6-autofix
For the Vue 3 TypeScript preset we need additionally:
npm i -D @typescript-eslint/parser @vue/eslint-config-typescript vue-eslint-parser
There are 4 ESLint config presets that you can use:
eslint-config-kouts/javascript
for JavaScript / TypeScript projectseslint-config-kouts/vue2
for Vue.js 2 projectseslint-config-kouts/vue3
for Vue.js 3 projectseslint-config-kouts/vue3-typescript
for Vue.js 3 / TypeScript projectsAdd the desired config preset into your .eslintrc.js
file:
module.exports = {
extends: ['eslint-config-kouts/vue2']
}
Add a prettier.config.js
file with contents:
module.exports = require('eslint-config-kouts/prettier.config.js')
You can add ESLint commands to .package-json
{
"lint": "eslint \"**/*.{vue,ts,js}\"",
"lint-fix": "eslint --fix \"**/*.{vue,ts,js}\""
}
and VS Code settings for autofix on save
.vscode/settings.json
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
eslint --fix
FAQs
eslint configuration
We found that eslint-config-kouts 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.
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.