Prune
This commit is contained in:
@@ -47,14 +47,11 @@ export default [
|
||||
"@typescript-eslint/restrict-plus-operands": "off",
|
||||
"@typescript-eslint/no-meaningless-void-operator": "off",
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
"react-hooks/rules-of-hooks": "off",
|
||||
|
||||
"react-refresh/only-export-components": "off",
|
||||
/** TODO: New during eslint 8=>9 migration */
|
||||
"@typescript-eslint/no-unused-expressions": "off",
|
||||
// "@typescript-eslint/no-unused-vars": "off",
|
||||
|
||||
"@typescript-eslint/prefer-regexp-exec": "off",
|
||||
"@typescript-eslint/no-require-imports": "off",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -7,8 +7,10 @@ import { useEffect, useRef } from "react";
|
||||
|
||||
import "leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.webpack.css"; // Re-uses images from ~leaflet package
|
||||
import "leaflet/dist/leaflet.css";
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
haveWindow() && require("leaflet-defaulticon-compatibility");
|
||||
const L = haveWindow()
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
? (require("leaflet") as typeof import("leaflet"))
|
||||
: null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user