diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-10-31 11:09:24 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-10-31 11:09:24 -0500 |
commit | 406e9211f19ba67db5c792bd0a993e96abdb81f6 (patch) | |
tree | 9b217ea4837c3ffb97f69ebd58a7e6bd52582c97 /src/packages/eslint-config/eslint.library.config.js | |
parent | js: Migrate to ESLint 9 (diff) | |
download | locusts-406e9211f19ba67db5c792bd0a993e96abdb81f6.tar locusts-406e9211f19ba67db5c792bd0a993e96abdb81f6.tar.gz locusts-406e9211f19ba67db5c792bd0a993e96abdb81f6.tar.bz2 locusts-406e9211f19ba67db5c792bd0a993e96abdb81f6.tar.lz locusts-406e9211f19ba67db5c792bd0a993e96abdb81f6.tar.xz locusts-406e9211f19ba67db5c792bd0a993e96abdb81f6.tar.zst locusts-406e9211f19ba67db5c792bd0a993e96abdb81f6.zip |
refactor: Update eslint configuration
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r-- | src/packages/eslint-config/eslint.library.config.js | 14 |
1 files changed, 5 insertions, 9 deletions
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, ); |