Socket
Book a DemoInstallSign in
Socket

@castiron/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@castiron/eslint-config

General eslint configuration for Cast Iron Coding projects

1.0.0-beta.2
latest
Source
npmnpm
Version published
Weekly downloads
8
-52.94%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-config-cic

An ESLint Shareable Config for CIC projects

💿 Installation

yarn add @castiron/eslint-config -D

📖 Usage

New Config (eslint.config.js)

For all the rules, add this to your eslint.config.js file:

// eslint.config.js
import cicConfig from "@castiron/eslint-config";

export default [...cicConfig];

If you'd like to use only some of the rules, each config has a named export:

// Example: Vanilla js project with babel parser.
// eslint.config.js
import { baseConfig, jsConfig } from "@castiron/eslint-config";

export default [
  {
    parser: "@babel/eslint-parser",
    parserOptions: {
      sourceType: "module",
      requireConfigFile: false,
      babelOptions: {
        plugins: [
          "@babel/plugin-transform-react-jsx",
          "@babel/plugin-proposal-class-properties",
        ],
      },
    },
  }
  baseConfig,
  jsConfig,
];
// Example: Astro project without react.
// eslint.config.js
import { baseConfig, jsConfig, tsConfig } from "@castiron/eslint-config";
import eslintPluginAstro from "eslint-plugin-astro";

export default [
  {
    ignores: ["dist/", ".astro/"],
  },
  baseConfig,
  jsConfig,
  tsConfig,
  ...eslintPluginAstro.configs.recommended,
];

package.json

Add lint and fix scripts to package.json:

// package.json
{
  "scripts": {
    // ...,
    "lint": "eslint .",
    "fix": "eslint . --fix"
  }
}

FAQs

Package last updated on 07 Mar 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

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.