simontonsoftware / s-libs

A collection of libraries for any of javascript, rxjs, or angular.
MIT License
43 stars 5 forks source link

[eslint-config-ng] strict config #96

Closed ersimont closed 1 year ago

ersimont commented 1 year ago

Be sure to include setting parserOptions.project in the docs

ersimont commented 1 year ago

This is the magic config for a standard Angular project:

{
  "extends": "@s-libs/eslint-config-ng",
  "overrides": [
    {
      "files": ["*.ts"],
      "parserOptions": {
        "project": ["tsconfig.(app|spec).json"]
      },
      "rules": {
        ...
      }
    }
  ]
}
eric-simonton-sama commented 1 year ago

One also needs to npm i -D eslint-config-prettier

ersimont commented 1 year ago

Released!