Cotton code
23 lines · 652 B · TypeScriptRaw
import js from "@eslint/js";import globals from "globals";import tseslint from "typescript-eslint";import { defineConfig, globalIgnores } from "eslint/config";export default defineConfig([  globalIgnores(["dist", ".wrangler"]),  {    files: ["**/*.ts"],    extends: [js.configs.recommended, tseslint.configs.recommended],    languageOptions: {      ecmaVersion: 2023,      globals: globals.browser,    },  },  {    // The worker and the build config run off-browser.    files: ["src/worker/**/*.ts", "src/pages/**/*.ts", "src/site/**/*.ts", "vite.config.ts"],    languageOptions: {      globals: { ...globals.node },    },  },]);