Socket
Book a DemoInstallSign in
Socket

@charlietango/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@charlietango/eslint-config

Provide a baseline configuration and set of ESlint rules for projects written with TypeScript and React.

2.0.2
latest
npmnpm
Version published
Weekly downloads
38
-73.24%
Maintainers
0
Weekly downloads
 
Created
Source

@charlietango/eslint-config

Provide a baseline configuration and set of ESlint rules for projects written with TypeScript and React.

Usage

Create a new eslint.config.js file, and extend the @charlietango/eslint-config inside it.

import ctConfig from "@charlietango/eslint-config";

export default [...ctConfig];

You can modify the rules as needed, or add additional rules to the configuration.

Language

The configuration is written in TypeScript, and is intended to be used with TypeScript and React projects. It also includes globals for both node and browser environments.

Rules

Provides configuration for the following:

  • JavaScript
  • TypeScript
  • React

All the rules are located under @charlietango/eslint-config/rules, and can be imported and used individually.

Recommend plugins

In addition to this base configuration, we recommend using the following plugins in the application

eslint-plugin-tailwindcss

import ctConfig from "@charlietango/eslint-config";
import tailwind from "eslint-plugin-tailwindcss";

export default [
  ...ctConfig,
  ...tailwind.configs["flat/recommended"],
  {
    settings: {
      tailwindcss: {
        callees: ["classnames", "clsx", "cn"],
        classnamesOrder: "off", // Handled by Prettier
      },
    },
  },
];

FAQs

Package last updated on 08 Nov 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.