Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codecompose/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codecompose/eslint-config

A collection of ESLint configurations

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ESLint Config

A collection of ESLint configurations.

Usage

pnpm i @codecompose/eslint-config

Create a file named .eslintrc.(c)js in the root of your package. Use .cjs if your packages is ESM format.

You are expected to point parserConfig.project to your tsconfig.json file. For example:

// @ts-check
const { resolve } = require("node:path");
const project = resolve(__dirname, "tsconfig.json");

/** @type {import("eslint").Linter.Config} */
module.exports = {
  root: true,
  extends: ["@codecompose/eslint-config"],
  parserOptions: {
    project,
  },
};

Available Configurations

By default extends: ["@codecompose/eslint-config"] will point to the base configuration and is effectively the same as writing extends: ["@codecompose/eslint-config/base"]. Other available configurations are:

  • vercel-app: A Next.js based React application using the Vercel style guide
  • vercel-lib: A React library using the Vercel style guide
  • node: A node.js application or cloud service
  • react: A React library

FAQs

Package last updated on 19 Feb 2024

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