|
@@ -1,13 +1,19 @@
|
|
|
+import comments from "@eslint-community/eslint-plugin-eslint-comments/configs";
|
|
|
import { fixupPluginRules } from "@eslint/compat";
|
|
|
-import tseslint from "typescript-eslint";
|
|
|
-import eslint from "@eslint/js";
|
|
|
+import js from "@eslint/js";
|
|
|
import deprecationPlugin from "eslint-plugin-deprecation";
|
|
|
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"
|
|
|
+import globals from "globals";
|
|
|
+import tseslint from "typescript-eslint";
|
|
|
|
|
|
export default tseslint.config(
|
|
|
+ js.configs.recommended,
|
|
|
+ importPlugin.flatConfigs.recommended,
|
|
|
+ comments.recommended,
|
|
|
+ ...tseslint.configs.recommended,
|
|
|
+ ...tailwind.configs["flat/recommended"],
|
|
|
{
|
|
|
plugins: {
|
|
|
"@typescript-eslint": tseslint.plugin,
|
|
@@ -15,16 +21,7 @@ export default tseslint.config(
|
|
|
import: fixupPluginRules(importPlugin),
|
|
|
"simple-import-sort": simpleImportSortPlugin,
|
|
|
},
|
|
|
- },
|
|
|
- {
|
|
|
ignores: ["**/node_modules/**", "**/public/**"],
|
|
|
- },
|
|
|
- eslint.configs.recommended,
|
|
|
- comments.recommended,
|
|
|
- ...tseslint.configs.recommendedTypeChecked,
|
|
|
- ...tseslint.configs.stylisticTypeChecked,
|
|
|
- ...tailwind.configs["flat/recommended"],
|
|
|
- {
|
|
|
languageOptions: {
|
|
|
parserOptions: {
|
|
|
projectService: true,
|
|
@@ -33,15 +30,25 @@ export default tseslint.config(
|
|
|
sourceType: "module",
|
|
|
project: ["./tsconfig.json"],
|
|
|
},
|
|
|
+ globals: {
|
|
|
+ ...globals.node,
|
|
|
+ },
|
|
|
},
|
|
|
+ files: ["**/*.{js,mjs,cjs}"],
|
|
|
rules: {
|
|
|
"tailwindcss/no-custom-classname": [
|
|
|
- "error",
|
|
|
- {
|
|
|
- "config": "./tailwind.config.js",
|
|
|
- "whitelist": ['select_container', 'convert_to_popup', 'convert_to_group', 'target', 'convert_to_target']
|
|
|
- }
|
|
|
+ "error",
|
|
|
+ {
|
|
|
+ config: "./tailwind.config.js",
|
|
|
+ whitelist: [
|
|
|
+ "select_container",
|
|
|
+ "convert_to_popup",
|
|
|
+ "convert_to_group",
|
|
|
+ "target",
|
|
|
+ "convert_to_target",
|
|
|
+ ],
|
|
|
+ },
|
|
|
],
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
);
|