Skip to content

Commit

Permalink
Fix eslint flat config example (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChurroC authored May 11, 2024
1 parent ea48f49 commit c6ed90b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,14 @@ module.exports = defineConfig({
```ts
// @ts-check
const { defineFlatConfig } = require('eslint-define-config');
const js = require('@eslint/js');
const customConfig = require('./custom-config.js');

/// <reference types="@eslint-types/typescript-eslint" />

module.exports = defineFlatConfig([
'eslint:recommended',
js.configs.recommended,
customConfig,
{
plugins: {
// plugins...
Expand Down

0 comments on commit c6ed90b

Please sign in to comment.