francoismassart/eslint-plugin-tailwindcss

[BUG] type declaration for eslint flat config

Opened this issue · 3 comments

Describe the bug
The package don't have a type declaration file of the options and exports members

To Reproduce
Add the configuration like bellow and add in tsconfig.json "noImplicitAny": true

import tailwind from 'eslint-plugin-tailwindcss';

import type { Linter } from 'eslint';

const Tailwind: Linter.Config =
{
  languageOptions:
  {
    parserOptions:
    {
      ecmaFeatures:
      {
        jsx: true
      }
    }
  },
  name: 'tailwind',
  plugins: tailwind,
  rules:
  {

  }
};

export { Tailwind };

Expected behavior
This package should support typescript

Screenshots
image

Environment (please complete the following information):

  • OS: windows 10
  • Softwares + version used:
    • VSCode 1.94.2

There exists @types/eslint-plugin-tailwindcss which you can install in the meantime.

This work perfect, didnt know that [@types/eslint-plugin-tailwindcss](https://www.npmjs.com/package/@types/eslint-plugin-tailwindcss) exists, thanks!

The issue you have created is valid, let’s keep it open for now. While @types/eslint-plugin-tailwindcss package does the job, it’d be more convenient to use types directly from eslint-plugin-tailwindcss. One less dependency to install and update!