diff options
Diffstat (limited to '')
-rw-r--r-- | src/packages/eslint-config/eslint.library.config.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/packages/eslint-config/eslint.library.config.js b/src/packages/eslint-config/eslint.library.config.js new file mode 100644 index 0000000..8154244 --- /dev/null +++ b/src/packages/eslint-config/eslint.library.config.js @@ -0,0 +1,35 @@ +// @ts-check + +import globals from "globals"; +import eslint from "@eslint/js"; +import ts from "typescript-eslint"; +import prettier from "eslint-config-prettier"; +import turboPlugin from "eslint-plugin-turbo"; + +export default ts.config( + eslint.configs.recommended, + ...ts.configs.recommended, + { + name: "eslint-config-turbo (recreated flat)", + plugins: { + turbo: { rules: turboPlugin.rules }, + }, + rules: { + "turbo/no-undeclared-env-vars": "error", + }, + }, + { + name: "library", + languageOptions: { + globals: { + ...globals.browser, + ...globals.node, + React: true, + JSX: true, + Svelte: true + }, + }, + ignores: ["**/build/", "**/.svelte-kit/", "**/dist/"], + }, + prettier, +); |