Socket
Socket
Sign inDemoInstall

@kouts/eslint-config

Package Overview
Dependencies
13
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @kouts/eslint-config

Kouts's ESLint config


Version published
Weekly downloads
50
increased by108.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@kouts/eslint-config

Custom ESLint and Prettier config with sensible defaults

Installation

npm i -D @kouts/eslint-config eslint prettier

Usage

There are 4 ESLint config presets that you can use:

  • @kouts/eslint-config/javascript for JavaScript / TypeScript projects
  • @kouts/eslint-config/vue2 for Vue.js 2 projects
  • @kouts/eslint-config/vue3 for Vue.js 3 projects
  • @kouts/eslint-config/vue3-typescript for Vue.js 3 / TypeScript projects
  • @kouts/eslint-config/nuxt3 for Nuxt 3 projects

Add the desired config preset into your .eslintrc.js file:

module.exports = {
  extends: ['@kouts/eslint-config/vue2']
}

Add a prettier.config.js file with contents:

module.exports = require('@kouts/eslint-config/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
  }
}

Features

  • Based on eslint-config-standard
  • Prettier for code formatting
  • Plugins

License

MIT

Keywords

FAQs

Last updated on 01 Sep 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc