New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@moonstar-x/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moonstar-x/eslint-config

A shareable ESLint config used by moonstar-x.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

@moonstar-x/eslint-config

This repo contains a custom ESLint config used by moonstar-x.

Usage

This config is meant for ESLint version 8, make sure to install it in your project as well with:

npm install eslint@8

This config exposes multiple configs depending on the type of the project you're using.

Node

For Node.js projects, you should use the following config inside your eslint config:

{
  "extends": ["@moonstar-x/eslint-config/rules/node"]
}

Node (TypeScript)

For Node.js with TypeScript projects, you should use the following config inside your eslint config:

{
  "extends": ["@moonstar-x/eslint-config/rules/node", "@moonstar-x/eslint-config/rules/typescript"]
}

React

For React projects, you should use the following config inside your eslint config:

{
  "extends": ["@moonstar-x/eslint-config/rules/react"]
}

React (TypeScript)

For React with TypeScript projects, you should use the following config inside your eslint config:

{
  "extends": ["@moonstar-x/eslint-config/rules/react/typescript"]
}

Rule Overriding

In addition to including this config and its derivatives, you can override rules by adding the following to your eslint config:

{
  "extends": [
    "@moonstar-x/eslint-config/rules/type"
  ],
  "rules": {
    "eslint-rule-name": ["enabled", "options"]
    ...
  }
}

Keywords

eslint

FAQs

Package last updated on 24 Jul 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