1.1.3 • Published 4 months ago

@zphyrx/exlint v1.1.3

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

@zphyrx/exlint

Installation

To install @zphyrx/exlint, run the following command:

# Using npm
$ npm install -D @zphyrx/exlint

# or using pnpm
$ pnpm add -D @zphyrx/exlint

Usage

Extend @zphyrx/exlint and add any additional configurations in your eslint.config.mjs file:

import * as exlint from "@zphyrx/exlint";
import tailwindcssPlugin from "eslint-plugin-tailwindcss";

const config = exlint.config({
  /**
   * Allows you to "extend" a set of configs similar to `extends` from the
   * classic configs.
   *
   * Example:
   *
   * export default exlint.config({
   *   extends: [
   *      tailwindcssPlugin.configs["flat/recommended"],
   *   ],
   *   name: '@zphyrx/eslint-config/tailwindcss',
   *   files: ["** /*.ts?(x)"],
   *   rules: {
   *     "tailwindcss/classnames-order": "warn"
   *   },
   * });
   *
   * Expands to:
   *
   * export default [
   *   ...tailwindcssPlugin.configs["flat/recommended"],
   *   {
   *     name: '@zphyrx/eslint-config/tailwindcss',
   *     files: ["** /*.ts?(x)"],
   *     rules: {
   *       "tailwindcss/classnames-order": "warn"
   *     },
   *   },
   * ];
   */
  extends: [
    tailwindcssPlugin.configs["flat/recommended"]
  ],
  name: "@zphyrx/eslint-config/tailwindcss",
  files: ["**/*.ts?(x)"],
  rules: {
    "tailwindcss/classnames-order": "warn",
  },
});

export default config;

Note: @zphyrx/exlint is not a replacement for typescript-eslint, which is specifically designed for TypeScript projects. If you're working with TypeScript, typescript-eslint is likely the better choice due to its specialized linting and parsing features. @zphyrx/exlint serves as a general-purpose configuration helper.

1.1.3

4 months ago

1.1.2

5 months ago

1.1.1

6 months ago

1.1.0

6 months ago

0.0.0

6 months ago

1.0.0

6 months ago