Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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
The npm package eslint-config-kouts receives a total of 8 weekly downloads. As such, eslint-config-kouts popularity was classified as not popular.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.