Socket
Book a DemoInstallSign in
Socket

@alphacifer/eslint

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alphacifer/eslint

All eslint for Alpha's projects.

0.0.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

All eslint for Alpha's projects.

Introduction

  • base.js: basic config for all projects
  • next.js: config for all Next.js projects
  • react-app.js: config for all React App projects
  • react.js: config for all React packages/apps

Usage

Set "type": "module" for root package.json

Installation

pnpm add -D eslint @alphacifer/eslint typescript-eslint

Apply configuration

import tsEslint from 'typescript-eslint';
import baseLint from '@alphacifer/eslint/base';
import nextLint from '@alphacifer/eslint/next';
import reactLint from '@alphacifer/eslint/react';
import reactAppLint from '@alphacifer/eslint/react-app';

export default tsEslint.config(
  {
    ...baseLint,
    files: ['**/*.ts', '**/*.tsx', '**/*.js'],
  },
  {
    ...reactLint,
    files: [
      'packages/@react/**/*.ts',
      'packages/@react/**/*.tsx',
      'workspaces/**/*.ts',
      'workspaces/**/*.tsx',
    ],
  },
  {
    ...reactAppLint,
    files: ['workspaces/**/*.ts', 'workspaces/**/*.tsx'],
    ignores: [
      'workspaces/<next-project>/**/*.ts',
      'workspaces/<next-project>/**/*.tsx',
    ],
  },
  ...nextLint.map((config) => {
    return {
      ...config,
      files: [
        'workspaces/<next-project>/**/*.ts',
        'workspaces/<next-project>/**/*.tsx',
      ],
    };
  }),
);

Keywords

alpha

FAQs

Package last updated on 06 Jun 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.