Skip to content

globalbrain/eslint-config

Repository files navigation

Global Brain: ESLint Config

This package provides the Global Brain eslint preset as an extensible shared config. It is an opinionated extension of @antfu/eslint-config.

Usage

Install

pnpm add -D eslint @globalbrain/eslint-config

Configuration

eslint.config.js

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.

package.json

{
  "scripts": {
    "lint": "eslint . --fix",
    "lint:fail": "eslint ."
  }
}

License

This package is open-sourced software licensed under the MIT license.

About

The Global Brain ESLint Config.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5