Skip to content

๐Ÿ•ต๐Ÿผโ€โ™€๏ธ Custom ESLint configuration for projects. It extends popular configs in one place

License

Notifications You must be signed in to change notification settings

msobiecki/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

eslint-config

License

Custom ESLint configuration for projects. It extends popular configs in one place.

Table of Contents

Installation

npm install --save-dev @msobiecki/eslint-config

Make sure to install the necessary peer dependencies as well:

npm install --save-dev eslint prettier typescript

Usage

To use this ESLint Flat Config configuration, you need to extend it in your project's eslint.config.js file:

base javascript/typescript configuration

import { defineConfig } from "eslint/config";
import { basePreset } from "@msobiecki/eslint-config";

export default defineConfig([
  basePreset,
  ...
]);

best practice configuration

import { defineConfig } from "eslint/config";
import { bestPracticePreset } from "@msobiecki/eslint-config";

export default defineConfig([
  ...,
  bestPracticePreset,
]);

import configuration

import { defineConfig } from "eslint/config";
import { importPreset } from "@msobiecki/eslint-config";

export default defineConfig([
  ...,
  importPreset,
]);

react javascript/typescript configuration

import { defineConfig } from "eslint/config";
import { reactPreset } from "@msobiecki/eslint-config";

export default defineConfig([
  ...,
  reactPreset
]);

next configuration

import { defineConfig } from "eslint/config";
import { nextPreset } from "@msobiecki/eslint-config";

export default defineConfig([
  ...,
  nextPreset
]);

node configuration

import { defineConfig } from "eslint/config";
import { node } from "@msobiecki/eslint-config";

export default defineConfig([
  ...,
  node
]);

jest configuration

import { defineConfig } from "eslint/config";
import { jestPreset } from "@msobiecki/eslint-config";

export default defineConfig([
  ...,
  jestPreset
]);

storybook configuration

import { defineConfig } from "eslint/config";
import { storybookPreset } from "@msobiecki/eslint-config";

export default defineConfig([
  ...,
  storybookPreset,
]);

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Feel free to contribute to this repository by opening issues or submitting pull requests. Happy coding!

About

๐Ÿ•ต๐Ÿผโ€โ™€๏ธ Custom ESLint configuration for projects. It extends popular configs in one place

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 5