@@ -69,19 +69,16 @@ Navigate to the root directory of your project and execute the following npm com
69
69
npm init @eslint/config
70
70
```
71
71
Choose the following options:
72
- - Usage: To check syntax, find problems, and enforce code style
72
+ - Usage: To check syntax and find problems
73
73
- Modules: JavaScript (import/export)
74
74
- Frameworks: None of these
75
75
- Typescript: No (Airbnb does not have support for TS, it is defined for JS and we will add additional TS support for it later)
76
76
- Environment: Browser
77
- - Style: Use a popular style guide
78
- - Style guide: Airbnb
79
- - Format: JSON
80
77
81
78
Now select the option to install required dependencies. Click on Yes.
82
79
Select the appropiate package manager that is used by you.
83
80
84
- Refer to this [screenshot](https://imgur.com/a/pIbb1Wb ) for the options to choose and expected outcome
81
+ Refer to this [screenshot](https://imgur.com/a/aO2ozaV ) for the options to choose and expected outcome
85
82
86
83
2. ** Install dependencies to support typescript**
87
84
@@ -546,7 +543,7 @@ To ensure proper setup, add the following configuration files to your project's
546
543
```
547
544
548
545
4. **`package.json`**
549
- Update `package.json`. Add the following line under "scripts" to enable Prettier formatting:
546
+ Update `package.json`. Add the following lines under "scripts" to detects any warnings and enable Prettier formatting:
550
547
551
548
```json
552
549
// package.json
@@ -555,11 +552,13 @@ To ensure proper setup, add the following configuration files to your project's
555
552
"scripts": {
556
553
// Other Commands
557
554
// Add the following line under "scripts"
555
+ "lint": "ng lint --max-warnings 0",
558
556
"prettier-format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""
559
557
}
560
558
// ...
561
559
}
562
560
```
561
+
563
562
1. **`settings.json`**
564
563
In your project' s root directory, locate the .vscode folder. Create one if it doesn' t exist. Once inside the folder, you can either create or modify the settings.json file. Populate this file with the following content:
565
564
0 commit comments