import js from "@eslint/js"; import globals from "globals"; import tseslint from "typescript-eslint"; import eslintPluginOnlyWarn from "eslint-plugin-only-warn"; import eslintPluginPrettier from "eslint-plugin-prettier"; import eslintConfigPrettier from "eslint-config-prettier"; export default [ { ignores: ["library/**", "temp/**", "settings/**", "profiles/**", "node_modules/**"], }, js.configs.recommended, ...tseslint.configs.recommended, eslintConfigPrettier, { files: ["**/*.ts"], languageOptions: { ecmaVersion: "latest", sourceType: "module", globals: { ...globals.browser, ...globals.node, }, }, plugins: { "@typescript-eslint": tseslint.plugin, "only-warn": eslintPluginOnlyWarn, prettier: eslintPluginPrettier, }, rules: { "@typescript-eslint/dot-notation": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/prefer-nullish-coalescing": "off", "@typescript-eslint/strict-boolean-expressions": "off", "@typescript-eslint/no-unused-vars": [ "warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", }, ], "dot-notation": "off", "prettier/prettier": "error", "no-debugger": "off", }, }, ];