Skip to content

Commit

Permalink
chore(docs): update readme for .ts config files
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-buss committed Aug 10, 2024
1 parent 9288566 commit af6d74a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ export default style();
> [customization](#customization) for more details.
> [!TIP]
> ESLint by default only detects `eslint.config.js` as the flat config entry.
> You should install
> [`eslint-ts-patch`](https://github.com/antfu/eslint-ts-patch) so that you can
> use `.ts` as the config file.
> ESLint can support .ts config files, but requires some additional setup. See
> [here](https://eslint.org/docs/latest/use/configure/configuration-files#typescript-configuration-files)
> for more information.
### tsconfig.build.json

Expand Down Expand Up @@ -148,7 +147,10 @@ Add the following settings to your `.vscode/settings.json`:
"jsonc",
"yaml",
"toml"
]
],

// Currently required to enable .ts config files
"eslint.options": { "flags": ["unstable_ts_config"] }
}
```

Expand Down

0 comments on commit af6d74a

Please sign in to comment.