1.0.6 • Published 10 months ago

@moccona/eslint-config v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

@moccona/eslint-config

The @moccona/eslint-config package provides a convenient way to configure ESLint rules. It allows you to extend the default configuration with custom rules tailored to your project's needs.

Installation

  1. Basic Installation:
npm install @moccona/eslint-config -D

Available Extras

The package provides additional configuration options through "extras" modules, which can be imported and customized. Currently supported extras include:

  • TypeScript: Extends the base configuration with TypeScript-specific rules.
  • React: Provides React-specific configurations for ESLint checks.
  • TailwindCSSv3: Offers Tailwind CSS utilities integration into ESLint reports.
  • Jest: Enhances ESLint with Jest-generated test files and fixtures.
  • Vitest: Adds Vitest test discovery options to your ESLint configuration.

Example Usage

Here's an example of how you might use the package in your project:

// eslint.config.js
import baseConfig from "@moccona/eslint-config/flat";
// if you use typescript.
import tsConfig from "@moccona/eslint-config/extra/typescript";
// if you use prettier
import prettierConfig from "@moccona/eslint-config/extra/prettier";

export default [
  ...baseConfig,
  ...tsConfig,
  ...prettierConfig,
  {
    // Add your custom here.
  },
];

Notes

The legacy configuration is marked as deprecated. Users are encouraged to use the new format instead.

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

11 months ago

0.3.8

1 year ago

0.3.9

1 year ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.10

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.2

1 year ago

0.3.6

1 year ago

0.3.7

1 year ago

0.3.5

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago