@pepeeja/eslint-config-angular
v16.0.5
Published
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/pepeeja/eslint-config-angular/blob/main/LICENSE) [![npm latest package](https://img.shields.io/npm/v/@pepeeja/eslint-config-angular/latest.svg)](https://www.npmjs.com/packa
Downloads
13
Readme
@pepeeja/eslint-config-angular
ESLint and Prettier setup for Angular project
Install
// with npm
npm install @pepeeja/eslint-config-angular
// with yarn
yarn add @pepeeja/eslint-config-angular
Usage
Prettier
This package contains two configurations one for ESLint and Prettier.
Prettier could be configured by creating .prettierrc
file in the root directory of your project with the following content:
"@pepeeja/eslint-config-angular/prettier"
ESLint configuration has several options based on used environment. You can find list of available configurations below.
ESLint
To apply Angular specific rules there is additional configuration which is inherited from standard one.
Create .eslintrc
file in the root directory of your project with the following content:
{
"extends": "@pepeeja/eslint-config-angular"
}
To setup Typescript integration provide additional configuration in .eslintrc
file:
"parserOptions": {
"ecmaVersion": 2022,
"project": ["tsconfig.json"],
"sourceType": "module"
}
To enable Typescript path aliases provide configuration for import resolver in .eslintrc
file:
"settings": {
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
}
License
This project is licensed under the terms of the MIT License