Skip to content

Commit

Permalink
docs(README): [shared-configurations] use projectService in code example
Browse files Browse the repository at this point in the history
- fix broken link to typescript-eslint parser
  • Loading branch information
SimonGolms committed Jan 8, 2025
1 parent 046bc1c commit 52530c8
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,20 @@ The following plugins are used in this configuration:

Additionally, the [`eslint-plugin-perfectionist`](https://github.com/azat-io/eslint-plugin-perfectionist) is used to automatically fix sorting issues.

This configuration also sets up the TypeScript parser [`@typescript-eslint/parser`](https://typescript-eslint.io/architecture/parser) and [`eslint-import-resolver-typescript`](https://github.com/import-js/eslint-import-resolver-typescript). The TypeScript project file `./tsconfig.json` is set as default value for the project option in the parser configuration. If this is not the case, this must be changed accordingly:
This configuration also sets up the TypeScript parser [`@typescript-eslint/parser`](https://typescript-eslint.io/packages/parser/) and [`eslint-import-resolver-typescript`](https://github.com/import-js/eslint-import-resolver-typescript). The TypeScript project configuration file `./tsconfig.json` is set as default value in the parser configuration. If this is not the case, this must be changed accordingly:

```js
import boehringer from '@boehringer-ingelheim/eslint-config';

export default boehringer.config(
boehringer.configs.base,
{
languageOptions: {
parserOptions: {
project: ['./tsconfig.dev.json'],
export default boehringer.config(boehringer.configs.base, {
languageOptions: {
parserOptions: {
projectService: {
defaultProject: ['./tsconfig.dev.json'],
},
},
}
);
},
});
```

### Local
Expand Down

0 comments on commit 52530c8

Please sign in to comment.