24 lines
702 B
TypeScript
24 lines
702 B
TypeScript
import type { ConfigNames, TypedFlatConfigItem } from '@antfu/eslint-config'
|
|
import type { FlatConfigComposer } from 'eslint-flat-config-utils'
|
|
import antfu from '@antfu/eslint-config'
|
|
|
|
const config: FlatConfigComposer<TypedFlatConfigItem, ConfigNames> = antfu({
|
|
pnpm: false,
|
|
rules: {
|
|
'no-cond-assign': 'off',
|
|
},
|
|
}).append({
|
|
files: ['**/README.md', 'SPEC.md', '**/benchmarks/**/*', '**/docs/**/*'],
|
|
rules: {
|
|
'markdown/no-missing-link-fragments': 'off',
|
|
'markdown/fenced-code-language': 'off',
|
|
'markdown/heading-increment': 'off',
|
|
'import/no-duplicates': 'off',
|
|
'style/no-tabs': 'off',
|
|
'yaml/quotes': 'off',
|
|
'yaml/indent': 'off',
|
|
},
|
|
})
|
|
|
|
export default config
|