npm.io
0.0.10 • Published 2 years ago

eslint-config-gbrachetta-stylistic

Licence
MIT
Version
0.0.10
Deps
16
Size
16 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-stylistic"
      ]
    }
  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,
    }