mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 17:44:02 -05:00
* feat(defaults, gui): add bluewallet and cakewallet electrum servers * progress * fix circular dependency * detect import cycles * add changelog entry * move DEFAULT_RENDEZVOUS_POINTS into defaults.ts * move defaults.rs and types.ts one level higher * rename * collapse PRESET_RENDEZVOUS_POINTS and DEFAULT_RENDEZVOUS_POINTS
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
import globals from "globals";
|
|
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
import pluginReact from "eslint-plugin-react";
|
|
import importPlugin from "eslint-plugin-import";
|
|
|
|
export default [
|
|
{ ignores: ["node_modules", "dist"] },
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
pluginReact.configs.flat.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: globals.browser,
|
|
},
|
|
plugins: {
|
|
import: importPlugin,
|
|
},
|
|
rules: {
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/no-unescaped-entities": "off",
|
|
"react/no-children-prop": "off",
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-empty-object-type": "off",
|
|
"import/no-cycle": ["error", { maxDepth: 10 }],
|
|
"no-restricted-globals": [
|
|
"warn",
|
|
{
|
|
name: "open",
|
|
message:
|
|
"Use the open(...) function from @tauri-apps/plugin-shell instead",
|
|
},
|
|
],
|
|
"no-restricted-properties": [
|
|
"warn",
|
|
{
|
|
object: "window",
|
|
property: "open",
|
|
message:
|
|
"Use the open(...) function from @tauri-apps/plugin-shell instead",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|