@mammutdefenders/eslint-config

1.0.9 • Public • Published

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']

Readme

Keywords

Package Sidebar

Install

npm i @mammutdefenders/eslint-config

Weekly Downloads

3

Version

1.0.9

License

ISC

Unpacked Size

7.8 kB

Total Files

3

Last publish

Collaborators

  • mammutdefenders