Skip to main content
Home

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
52%
Published
a year ago (0.0.1)

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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@cc/eslint-config

Import symbol

import * as eslint_config from "@cc/eslint-config";
or

Import directly with a jsr specifier

import * as eslint_config from "jsr:@cc/eslint-config";

Add Package

pnpm i jsr:@cc/eslint-config
or (using pnpm 10.8 or older)
pnpm dlx jsr add @cc/eslint-config

Import symbol

import * as eslint_config from "@cc/eslint-config";

Add Package

yarn add jsr:@cc/eslint-config
or (using Yarn 4.8 or older)
yarn dlx jsr add @cc/eslint-config

Import symbol

import * as eslint_config from "@cc/eslint-config";

Add Package

vlt install jsr:@cc/eslint-config

Import symbol

import * as eslint_config from "@cc/eslint-config";

Add Package

npx jsr add @cc/eslint-config

Import symbol

import * as eslint_config from "@cc/eslint-config";

Add Package

bunx jsr add @cc/eslint-config

Import symbol

import * as eslint_config from "@cc/eslint-config";