Skip to content

ESLint Setup

Add Angular ESLInt: https://github.com/angular-eslint/angular-eslint

Add the following plugins:

Add new script called fix in package.json that will automatically fix any linting errors

Sort scripts in package.json alphabetically.

Add .prettier.json with contents:

{
  "arrowParens": "avoid",
  "bracketSpacing": false,
  "printWidth": 100,
  "semi": true,
  "singleQuote": true,
  "tabWidth": 2,
  "trailingComma": "es5",
  "useTabs": false
}

Add .prettierignore with contents:

package.json
package-lock.json
yarn.lock
dist
Edited by Clayton, Brandon Scott