Socket
Book a DemoInstallSign in
Socket

@djangocfg/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@djangocfg/eslint-config

Shared ESLint configurations for Next.js, React, and TypeScript projects with best practices and Prettier integration

latest
Source
npmnpm
Version
2.1.49
Version published
Maintainers
1
Created
Source

@djangocfg/eslint-config

Shared ESLint configurations for Next.js, React, and TypeScript projects with best practices and Prettier integration

npm version License: MIT

Part of DjangoCFG — a modern Django framework for building production-ready SaaS applications. All @djangocfg/* packages are designed to work together, providing type-safe configuration, real-time features, and beautiful admin interfaces out of the box.

Overview

@djangocfg/eslint-config provides battle-tested ESLint configurations for modern JavaScript and TypeScript projects. It includes presets for Next.js applications, React libraries, and general TypeScript projects.

Features

  • Next.js Preset - Optimized rules for Next.js App Router
  • React Preset - React hooks and JSX best practices
  • TypeScript Support - Full typescript-eslint integration
  • Prettier Compatible - Works seamlessly with Prettier
  • Turbo Support - Turborepo-aware caching rules
  • ESLint 9 - Uses flat config format

Installation

npm install -D @djangocfg/eslint-config eslint
# or
pnpm add -D @djangocfg/eslint-config eslint
# or
yarn add -D @djangocfg/eslint-config eslint

Usage

Next.js Projects

// eslint.config.mjs
import nextConfig from '@djangocfg/eslint-config/next-js';

export default nextConfig;

React Libraries

// eslint.config.mjs
import reactConfig from '@djangocfg/eslint-config/react-internal';

export default reactConfig;

Base TypeScript

// eslint.config.mjs
import baseConfig from '@djangocfg/eslint-config/base';

export default baseConfig;

Available Configs

ConfigDescription
@djangocfg/eslint-config/baseBase TypeScript configuration
@djangocfg/eslint-config/next-jsNext.js App Router configuration
@djangocfg/eslint-config/react-internalReact library configuration

Included Plugins

  • @eslint/js - ESLint recommended rules
  • typescript-eslint - TypeScript linting
  • eslint-plugin-react - React specific rules
  • eslint-plugin-react-hooks - Hooks rules
  • @next/eslint-plugin-next - Next.js rules
  • eslint-plugin-turbo - Turborepo rules
  • eslint-config-prettier - Prettier compatibility

Documentation

Full documentation available at djangocfg.com

Contributing

Issues and pull requests are welcome at GitHub

License

MIT - see LICENSE for details

Keywords

eslint

FAQs

Package last updated on 17 Dec 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