19.0.2 • Published 10 months ago

@kidwen/eslint-config-angular v19.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

GitHub package.json version (subfolder of monorepo) NPM npm (prod) dependency version (scoped) npm (prod) dependency version (scoped) npm (prod) dependency version (scoped)

eslint-angular

eslint for angular project

Quick Start

  1. Follow the latest Getting Started guide on https://angular.io/ in order to install the Angular CLI

  2. install this package in your project

    # use npm
    npm install @kidwen/eslint-config-angular@latest --save-dev
    # use yarn
    yarn add @kidwen/eslint-config-angular@latest --dev 
  3. add tsconfig.eslint.json file like this

    {
        "extends": "./tsconfig.app.json",
        "include": [
            // adjust "includes" to what makes sense for you and your project
            "src/**/*.ts",
            "projects/**/*.ts",
        ]
    }
  4. add eslint.config.json file like this

    const tseslint = require('typescript-eslint');
    module.exports = tseslint.config(
        ...kidwenlint,
        {
            files: ['**/*.ts'],
            rules: {
                // your rules
            },
        }
    );

Test

git clone https://github.com/kidwen/eslint-config-angular.git

cd eslint-config-angular

yarn

yarn link

cd example/lint

yarn

yarn link @kidwen/eslint-config-angular

yarn lint