npm.io
1.10.0 • Published 1 year ago

eslint-config-gbrachetta

Licence
MIT
Version
1.10.0
Deps
16
Size
9 kB
Vulns
0
Weekly
0

Eslint config with TypeScript support

  1. Install the package

    npm i -D eslint-config-gbrachetta
  2. Add "gbrachetta" to .eslintrc.json

    {
      "extends": [
        // [other extends]
        "gbrachetta"
      ]
    }
  3. If on VSCode, intall the estension Error Lens to display errors.

  4. If you use VSCode and want to lint and format on save, add the following values to settings.json

    {
       "editor.codeActionsOnSave": { "source.fixAll.eslint": true },
       "editor.formatOnSave": true,
    }

Keywords