chore: format and update deps
This commit is contained in:
parent
e573997aa9
commit
4c747e8908
7 changed files with 96 additions and 83 deletions
|
|
@ -2,16 +2,16 @@ import { fixupPluginRules } from "@eslint/compat";
|
|||
import tseslint from "typescript-eslint";
|
||||
import eslint from "@eslint/js";
|
||||
import deprecationPlugin from "eslint-plugin-deprecation";
|
||||
import eslintCommentsPlugin from "eslint-plugin-eslint-comments";
|
||||
import importPlugin from "eslint-plugin-import";
|
||||
import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
|
||||
import tailwind from "eslint-plugin-tailwindcss";
|
||||
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs"
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
plugins: {
|
||||
"@typescript-eslint": tseslint.plugin,
|
||||
deprecation: fixupPluginRules(deprecationPlugin),
|
||||
"eslint-comments": eslintCommentsPlugin,
|
||||
import: fixupPluginRules(importPlugin),
|
||||
"simple-import-sort": simpleImportSortPlugin,
|
||||
},
|
||||
|
|
@ -20,8 +20,10 @@ export default tseslint.config(
|
|||
ignores: ["**/node_modules/**", "**/public/**"],
|
||||
},
|
||||
eslint.configs.recommended,
|
||||
comments.recommended,
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
...tseslint.configs.stylisticTypeChecked,
|
||||
...tailwind.configs["flat/recommended"],
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
|
|
@ -32,5 +34,14 @@ export default tseslint.config(
|
|||
project: ["./tsconfig.json"],
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"tailwindcss/no-custom-classname": [
|
||||
"error",
|
||||
{
|
||||
"config": "./tailwind.config.js",
|
||||
"whitelist": ['select_container', 'convert_to_popup', 'convert_to_group', 'target', 'convert_to_target']
|
||||
}
|
||||
],
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue