This package provides the Global Brain eslint preset as an extensible shared config. It is an opinionated extension of @antfu/eslint-config.
pnpm add -D eslint @globalbrain/eslint-config
import globalbrain from '@globalbrain/eslint-config'
export default globalbrain()
The default export of this package is a factory function that accepts an arbitrary number of ESLint configuration objects, which will be merged into the final configuration. It returns a FlatConfigComposer
object from eslint-flat-config-utils
, allowing you to chain methods for even more flexible configuration composition.
{
"scripts": {
"lint": "eslint . --fix",
"lint:fail": "eslint ."
}
}
This package is open-sourced software licensed under the MIT license.