0.1.11 • Published 1 year ago

@inelo/eslint-config-angular v0.1.11

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Shareable style-guide

Package to lint and prettify them all

Overview

This configuration includes eslint, prettier for the all projects who need them ;)

Usage

  1. Install:
yarn add -D @inelo/eslint-config-angular

npx ng add @angular-eslint/schematics

or when we'll developing package without publish to npm

yarn link "@inelo/eslint-config-angular"
  1. Create or modify an .eslintrc.json file in your project root and add:
{
  "extends": ["@inelo/eslint-config-angular"],
  "root": true,
  ...
}
  1. Create a .prettierrc.js file in your project root and add:
const prettier = require("@inelo/eslint-config-angular/prettier");
module.exports = prettier;
  1. Add Fix Lint and Prettier errors command in package.json
{
  "scripts": {
    "lint": "ng lint",
    "lint:fix": "ng lint --fix"
  } 
}

Settings screen for editors

Intelij/Webstorm

WebstormRunOnSave WebstormEslint

VSCode

...