mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-26 10:49:18 -04:00
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
import globals from "globals";
|
|
import pluginJs from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
import pluginReact from "eslint-plugin-react";
|
|
|
|
export default [
|
|
{
|
|
ignores: ["node_modules", "dist"],
|
|
},
|
|
pluginJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
pluginReact.configs.flat.recommended,
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
|
languageOptions: { globals: globals.browser },
|
|
rules: {
|
|
"react/react-in-jsx-scope": "off",
|
|
// Disallow the use of the `open` on the gloal object
|
|
"no-restricted-globals": [
|
|
"warn",
|
|
{
|
|
name: "open",
|
|
message:
|
|
"Use the open(...) function from @tauri-apps/plugin-shell instead",
|
|
},
|
|
],
|
|
// Disallow the use of the `open` on the `window` object
|
|
"no-restricted-properties": [
|
|
"warn",
|
|
{
|
|
object: "window",
|
|
property: "open",
|
|
message:
|
|
"Use the open(...) function from @tauri-apps/plugin-shell instead",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|