0.1.6 • Published 22 days ago

eslint-config-masa v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

eslint-config-masa

TypeScript ESLint config for masa-finance

to install

 npx install-peerdeps --dev eslint-config-masa

how to add to repo

  1. add .eslintrc or .eslintrc.json to your project and copy paste the following config:
{
  "root": true,
  "extends": ["masa"],
  "overrides": [
    {
      "files": ["*.ts", "*.tsx", "*.js"],
      "parser": "@typescript-eslint/parser"
    }
  ]
}
  1. add .prettierrc or .prettierrc.json to your project root and copy paste the following config:
{
    "printWidth": 80,
    "semi": true,
    "singleQuote": true,
    "trailingComma": "es5",
    "endOfLine": "auto",
    "overrides": [
      {
        "files": ["*.json", ".yml", ".yaml"],
        "options": {
          "tabWidth": 2
        }
      }
    ]
  }