New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gitcoin/config

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitcoin/config

Shared configuration files for the Gitcoin Core Design System monorepo, including ESLint, TypeScript, and Prettier configurations.

  • 0.0.0-beta.23
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@gitcoin/config

Shared configuration files for the Gitcoin Core Design System monorepo, including ESLint, TypeScript, and Prettier configurations.

Overview

This package contains centralized configuration files used across the monorepo to ensure consistent code style, linting rules, and TypeScript settings.

Structure

.
├── eslint/              # ESLint configurations
│   ├── library.js       # Base config for libraries
│   ├── next.js         # NextJS specific rules
│   ├── react.js        # React specific rules
│   ├── react-internal.js # Internal React rules
│   └── storybook.js    # Storybook specific rules
│
└── tsconfig/           # TypeScript configurations
    ├── base.json       # Base TS config
    ├── nextjs.json     # NextJS specific config
    ├── react.json      # React specific config
    ├── storybook.json  # Storybook specific config
    └── ui.json         # UI package specific config

Usage

ESLint Configs

// .eslintrc.js
module.exports = {
  extends: ['@gitcoin/config/eslint-react'],
  // or any other config:
  // '@gitcoin/config/eslint-library'
  // '@gitcoin/config/eslint-next'
  // '@gitcoin/config/eslint-storybook'
}

TypeScript Configs

{
  "extends": "@gitcoin/config/tsconfig-react.json"
  // or any other config:
  // "@gitcoin/config/tsconfig-nextjs.json"
  // "@gitcoin/config/tsconfig-storybook.json"
  // "@gitcoin/config/tsconfig-ui.json"
}

Prettier Config (Coming Soon)

// .prettierrc.js
module.exports = {
  ...require('@gitcoin/config/prettier')
}

Available Configurations

ESLint

  • eslint-library: Base configuration for libraries
  • eslint-next: Rules for Next.js applications
  • eslint-react: Rules for React applications
  • eslint-react-internal: Internal React specific rules
  • eslint-storybook: Rules for Storybook files

TypeScript

  • tsconfig/base.json: Base TypeScript configuration
  • tsconfig/nextjs.json: Next.js specific configuration
  • tsconfig/react.json: React specific configuration
  • tsconfig/storybook.json: Storybook specific configuration
  • tsconfig/ui.json: UI package specific configuration

Prettier (Coming Soon)

Shared Prettier configuration to ensure consistent code formatting across all Gitcoin repositories.

License

AGPL-3.0 - see the LICENSE file for details.

FAQs

Package last updated on 24 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc