Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-kouts

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-kouts

eslint configuration

  • 2.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by80%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-kouts

Custom ESLint and Prettier config with sensible defaults

Installation

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

Usage

There are 4 ESLint config presets that you can use:

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

Add 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
  }
}

Features

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

License

MIT

Keywords

FAQs

Package last updated on 30 Jul 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc