mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-06-27 22:45:48 +00:00
chore: fix tseslint config
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import js from "@eslint/js";
|
||||
import eslintParserTypeScript from "@typescript-eslint/parser";
|
||||
import type { Linter } from "eslint";
|
||||
import eslintPluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
|
||||
import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default [
|
||||
export default tseslint.config(
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
// ...tailwind.configs["flat/recommended"],
|
||||
@@ -15,7 +14,7 @@ export default [
|
||||
"simple-import-sort": simpleImportSortPlugin,
|
||||
"better-tailwindcss": eslintPluginBetterTailwindcss,
|
||||
},
|
||||
ignores: ["**/node_modules/**"],
|
||||
ignores: ["**/node_modules/**", "eslint.config.ts"],
|
||||
languageOptions: {
|
||||
parser: eslintParserTypeScript,
|
||||
parserOptions: {
|
||||
@@ -26,10 +25,9 @@ export default [
|
||||
},
|
||||
globals: {
|
||||
...globals.node,
|
||||
...globals.browser,
|
||||
},
|
||||
},
|
||||
files: ["**/*.{js,mjs,cjs,jsx,tsx,ts}"],
|
||||
files: ["**/*.{tsx,ts}"],
|
||||
settings: {
|
||||
"better-tailwindcss": {
|
||||
entryPoint: "src/main.css",
|
||||
@@ -63,4 +61,13 @@ export default [
|
||||
],
|
||||
},
|
||||
},
|
||||
] as Linter.Config[];
|
||||
{
|
||||
files: ["**/*.{js,cjs,mjs,jsx}"],
|
||||
extends: [tseslint.configs.disableTypeChecked],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
"esModuleInterop": true
|
||||
// "noImplicitReturns": true
|
||||
},
|
||||
"include": ["src", "package.json"]
|
||||
"include": ["src", "package.json", "reset.d.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user