Skip to content

Commit

Permalink
feat: disable rules for config files
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 20, 2024
1 parent fcaf7d8 commit a434edf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/configs/disables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,14 @@ export async function disables(): Promise<TypedFlatConfigItem[]> {
'ts/no-require-imports': 'off',
},
},
{
files: [`**/*.config.${GLOB_SRC_EXT}`, `**/*.config.*.${GLOB_SRC_EXT}`],
name: 'antfu/disables/config-files',
rules: {
'antfu/no-top-level-await': 'off',
'no-console': 'off',
'ts/explicit-function-return-type': 'off',
},
},
]
}

0 comments on commit a434edf

Please sign in to comment.