Socket
Book a DemoInstallSign in
Socket

@eruptionjs/config

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eruptionjs/config

Opinionated configuration for EruptionJS projects

0.6.1
latest
Source
npmnpm
Version published
Weekly downloads
50
-30.56%
Maintainers
3
Weekly downloads
 
Created
Source

@eruptionjs/config ⚙️

Opinionated configuration for projects using Prettier, ESLint, TypeScript and React.

Installation

npm install --save-dev @eruptionjs/config

usage

While you have full control over the configuration, you can use the settings in this project as a starting point for your own. In many cases, the default configurations may be all you need.

Prettier configuration

Install prettier on your project, and add the eruptionjs configuration on your package.json:

npm install --save-dev prettier

package.json

{
  // ... Your existing configuration
  "prettier": "@eruptionjs/config/prettier"
}

TypeScript configuration

The Eruption TypeScript configuration extends the base TypeScript configuration with additional rules and settings.

To use the configuration, add the following to your tsconfig.json (create it if it doesn't exist):

{
  "extends": "@eruptionjs/config/typescript",
  "include": ["@eruptionjs/reset.d.ts", "**/*.ts", "**/*.tsx"],
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"]
    }
  }
}

ESLint configuration

The Eruption ESLint configuration extends the base ESLint configuration with additional rules and settings.

To use the configuration, install eslint on your project, and add the following to your eslint.config.js file (create it if it doesn't exist):

npm install --save-dev eslint

eslint.config.js

import { config as defaultConfig } from '@eruptionjs/config/eslint'

/** @type {import("eslint").Linter.Config} */
export default [...defaultConfig]

Biome configuration (Experimental 🧪)

Install biome on your project, and add the eruptionjs configuration on your biome.json file:

npm install --save-dev @biomejs/biome

biome.json

{
  "extends": "@eruptionjs/config/biome"
}

License

MIT @ EruptionJS and its contributors.

Keywords

eruption

FAQs

Package last updated on 01 Apr 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.