1.0.9 • Published 3 years ago

@mammutdefenders/eslint-config v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

eslint-config

The eslint config for @mammutdefenders

Usage

install

pnpm add -D eslint @mammutdefenders/eslint-config

Config

create file .eslintrc

{
  "extends": "@mammutdefenders"
}

Add script for package.json

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Config VS Code auto fix

Create .vscode/settings.json

{
  "prettier.enable": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}

Override rules

  • '@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }]
  • 'curly': ['error', 'all']