0.0.1 • Published 5 months ago

inslint v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Inslint

The fastest, easiest way to set up ESLint for your projects

Instant ESLint setup in 1 second

Modern, zero-hassle ESLint configuration for JavaScript and TypeScript projects that just works.

Features

  • 🚀 Instant setup - Get linting in 1 second with minimal configuration
  • ⚙️ Zero config needed - Works out of the box with smart defaults
  • 🔄 Drop-in replacement for complex ESLint setups
  • 🧩 Modular design with clear extension points
  • 🔧 Compatible with ESLint v9+ flat config format
  • 🎨 Seamless Prettier integration for consistent code formatting

Installation

npm install --save-dev inslint eslint

Quick Start (1 second to lint!)

Create an eslint.config.js file in your project root:

import config from 'inslint';

export default config;
// That's it! You're ready to lint.

Presets

Recommended (Default)

import { recommended } from 'inslint';

export default recommended;

Strict

import { strict } from 'inslint';

export default strict;

Custom Configuration (Still Super Simple)

import { createConfig } from 'inslint';

export default createConfig({
  typescript: true,
  react: true,
  next: false,
  prettier: true,
  strictMode: false,
  rules: {
    'no-console': 'warn',
    '@typescript-eslint/no-explicit-any': 'off',
  },
  ignores: ['**/generated/**'],
});

Extending Configurations

import { mergeConfigs, base, typescript, react } from 'inslint';

export default mergeConfigs(
  base,
  typescript,
  react,
  [
    {
      files: ['**/tests/**/*.ts'],
      rules: {
        'no-console': 'off',
      },
    }
  ]
);

Available Configurations

  • base - Core JavaScript rules
  • typescript - TypeScript rules
  • react - React and JSX rules
  • next - Next.js specific rules
  • prettier - Prettier integration