Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 1.33 KB

README.md

File metadata and controls

75 lines (51 loc) · 1.33 KB

@echristian/eslint-config

A modern and opinionated ESLint configuration with TypeScript and JSX support.

Installation

Using npm:

npm install -D @echristian/eslint-config eslint

Using yarn:

yarn add -D @echristian/eslint-config eslint

Using pnpm:

pnpm add -D @echristian/eslint-config eslint

Usage

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

import eslintConfig from "@echristian/eslint-config";

export default eslintConfig({
  // Configuration options here
});

Example Configurations

Basic TypeScript Project with JSX

import eslintConfig from "@echristian/eslint-config";

export default eslintConfig({
  ignores: ["dist/"],
  jsx: true,
});

TypeScript Project without Type Checking

import eslintConfig from "@echristian/eslint-config";

export default eslintConfig({
  ignores: ["dist/"],
  typescript: {
    typeChecked: false,
  },
});

Dependencies

This config includes the following major dependencies:

  • @eslint/js: Core ESLint rules
  • typescript-eslint: TypeScript support
  • @stylistic/eslint-plugin: Style-related rules
  • eslint-plugin-unused-imports: Unused imports management
  • eslint-plugin-perfectionist: Additional best practices

License

MIT - See LICENSE for more information.