From 406e9211f19ba67db5c792bd0a993e96abdb81f6 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Thu, 31 Oct 2024 11:09:24 -0500 Subject: refactor: Update eslint configuration Signed-off-by: Matt Strapp --- src/packages/eslint-config/eslint.library.config.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/packages/eslint-config/eslint.library.config.js') diff --git a/src/packages/eslint-config/eslint.library.config.js b/src/packages/eslint-config/eslint.library.config.js index e3c7866..8154244 100644 --- a/src/packages/eslint-config/eslint.library.config.js +++ b/src/packages/eslint-config/eslint.library.config.js @@ -6,14 +6,9 @@ import ts from "typescript-eslint"; import prettier from "eslint-config-prettier"; import turboPlugin from "eslint-plugin-turbo"; -import { resolve } from "node:path"; - -const project = resolve(process.cwd(), "tsconfig.json"); - export default ts.config( eslint.configs.recommended, ...ts.configs.recommended, - prettier, { name: "eslint-config-turbo (recreated flat)", plugins: { @@ -26,14 +21,15 @@ export default ts.config( { name: "library", languageOptions: { - // parserOptions: { - // project: resolve(process.cwd(), "tsconfig.json") - // }, globals: { ...globals.browser, ...globals.node, + React: true, + JSX: true, + Svelte: true }, }, - ignores: ["build/", ".svelte-kit/", "dist/"], + ignores: ["**/build/", "**/.svelte-kit/", "**/dist/"], }, + prettier, ); -- cgit v1.2.3