
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 5 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.