Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.28 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.28 KB

eslint-plugin

@tapsellorg/eslint-plugin

Tapsell custom eslint plugin

Installation

npm i -D @tapsellorg/eslint-plugin eslint

Usage

In your ESLint config file .eslintrc:

module.exports = {
  extends: 'plugin:@tapsellorg/angular',
  root: true,
};

Note: This configuration is for angular workspaces (monorepo). If you have a single Angular project, use this config:

module.exports = {
  extends: 'plugin:@tapsellorg/angular',
  root: true,
  overrides: [
    {
      files: ['*.ts'],
      parserOptions: {
        project: ['tsconfig.json'],
        createDefaultProgram: false,
      },
    },
  ],
};

Run your eslint command. If you get any The file does not match your project config, The file must be included in at least one of the projects provided errors, read these docs: