Skip to content

Commit c48ac12

Browse files
author
gokulprasanth-ni
committed
update README file
Signed-off-by: gokulprasanth-ni <[email protected]>
1 parent 5132f42 commit c48ac12

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,44 @@ Instead of using the `extends` property, import the configuration packages you n
333333
4. **Remove legacy config fields**
334334
The flat config format does not use `parser`, or `plugins` at the top level. All configuration should be handled through the imported arrays and objects.
335335
336+
5. **@stylistic rules**
337+
The following rules are moved from `@typescript-eslint` to `@stylistic`. Update any project config overrides and inline suppressions to the new names:
338+
- `@typescript-eslint/member-delimiter-style``@stylistic/member-delimiter-style`
339+
- `@typescript-eslint/type-annotation-spacing``@stylistic/type-annotation-spacing`
340+
341+
Other deprecated rules may also now reside under `@stylistic`. Search your codebase for old suppressions (e.g. `eslint-disable @typescript-eslint/...`) and rename them as needed.
342+
343+
6. **Angular CLI linkage**
344+
When using `eslint.config.js` with Angular, explicitly point the Angular workspace at the flat config. In `angular.json` (per project):
345+
```json
346+
"projects": {
347+
"my-app": {
348+
"architect": {
349+
"lint": {
350+
"builder": "@angular-eslint/builder:lint",
351+
"options": {
352+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"],
353+
"eslintConfig": "./eslint.config.js"
354+
}
355+
}
356+
}
357+
}
358+
}
359+
```
360+
361+
7. **strictNullChecks** is now enabled by default.
362+
- If your project has `strictNullChecks` enabled, remove previously overridden strictNullChecks rules.
363+
- If your project has `strictNullChecks` disabled, disable those strictNullChecks rules to maintain previous behavior. Example:
364+
```js
365+
{
366+
files: ['**/*.ts'],
367+
rules: {
368+
'@typescript-eslint/no-unnecessary-condition': 'off',
369+
'@typescript-eslint/strict-boolean-expressions': 'off'
370+
}
371+
}
372+
```
373+
336374
### Recommended Development Environment Configuration
337375
338376
Modern IDEs can be configured to provide live feedback about ESLint errors.

0 commit comments

Comments
 (0)