Tapsell custom eslint plugin
npm i -D @tapsellorg/eslint-plugin eslint
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: