https://github.com/pepeeja/eslint-config-angular
ESLint and Prettier setup for Angular v15 projects
https://github.com/pepeeja/eslint-config-angular
angular eslint eslint-config prettier
Last synced: 3 months ago
JSON representation
ESLint and Prettier setup for Angular v15 projects
- Host: GitHub
- URL: https://github.com/pepeeja/eslint-config-angular
- Owner: pepeeja
- License: mit
- Created: 2023-03-24T19:01:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-13T15:56:38.000Z (almost 3 years ago)
- Last Synced: 2025-03-01T01:14:18.959Z (over 1 year ago)
- Topics: angular, eslint, eslint-config, prettier
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@pepeeja/eslint-config-angular
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @pepeeja/eslint-config-angular
[](https://github.com/pepeeja/eslint-config-angular/blob/main/LICENSE) [](https://www.npmjs.com/package/@pepeeja/eslint-config-angular)
ESLint and Prettier setup for Angular project
## Install
```shell
// 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:
```json
"@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:
```json
{
"extends": "@pepeeja/eslint-config-angular"
}
```
To setup Typescript integration provide additional configuration in `.eslintrc` file:
```json
"parserOptions": {
"ecmaVersion": 2022,
"project": ["tsconfig.json"],
"sourceType": "module"
}
```
To enable Typescript path aliases provide configuration for import resolver in `.eslintrc` file:
```json
"settings": {
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
}
```
## License
This project is licensed under the terms of the [MIT License](LICENSE)