An open API service indexing awesome lists of open source software.

https://github.com/timothydodd/prettier-eslint-angular-example


https://github.com/timothydodd/prettier-eslint-angular-example

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Prettier and ESLint Angular Setup Example

This repository contains a sample Angular project demonstrating how to integrate **Prettier** and **ESLint** for code formatting and linting, with auto-save functionality configured in Visual Studio Code. The project is designed as a practical example to accompany the blog post ["Setting Up Prettier and ESLint in Your Angular Project (With Auto-Save)"](https://robododd.com/setting-up-prettier-and-eslint-in-your-angular-project/).

## Features

- **Prettier**: Enforces consistent code formatting.
- **ESLint**: Identifies and fixes common issues in JavaScript/TypeScript.
- **VS Code Configuration**: Auto-save functionality with Prettier and ESLint integration.
- Example configuration files for `.eslintrc.json`, `.prettierrc`, and `.prettierignore`.

## Getting Started

### Prerequisites

Ensure the following are installed on your machine:

- [Node.js](https://nodejs.org/) (version 14 or higher recommended)
- [Angular CLI](https://angular.io/cli)
- [Visual Studio Code](https://code.visualstudio.com/)

### Installation

1. **Clone the repository**:
```bash
git clone https://github.com/yourusername/prettier-eslint-angular-example.git
cd prettier-eslint-angular-example
```
2. Install dependencies:
```bash
npm install
```

Start editing code