Skip to content

Commit

Permalink
modernize ESM imports (fixes wq/wq#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Feb 20, 2023
1 parent 2cc0f40 commit 34f07d9
Show file tree
Hide file tree
Showing 187 changed files with 1,031 additions and 690 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react", "jest"],
"plugins": ["react", "jest", "import"],
"rules": {
"no-console": "off",
"no-redeclare": "off",
"no-prototype-builtins": "off",
"require-atomic-updates": "off",
"react/prop-types": [2, { "skipUndeclared": true }]
"react/prop-types": [2, { "skipUndeclared": true }],
"import/extensions": [2, "ignorePackages"]
}
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import app from "@wq/app";
import material from "@wq/material";
import mapgl from "@wq/map-gl";
import modules from "./modules";
import version from "./version";
import modules from "./modules.js";
import version from "./version.js";
import maplibre from "maplibre-gl";

mapgl.setEngine(maplibre);
Expand Down
3 changes: 1 addition & 2 deletions modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import ReactIs from "react-is";
import PropTypes from "prop-types";
import * as formik from "formik";
import * as muiUtils from "@mui/utils";
import ButtonBase from "@mui/material/ButtonBase";
import Paper from "@mui/material/Paper";
import { ButtonBase, Paper } from "@mui/material";
import Map, * as reactMapGlExports from "react-map-gl";
import MapboxDraw from "@mapbox/mapbox-gl-draw";

Expand Down
286 changes: 286 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-terser": "^0.3.0",
"eslint": "^8.32.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-react": "^7.32.1",
"fake-indexeddb": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/__tests__/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import app from "../app";
import app from "../app.js";

test("it loads", () => {
expect(app).toBeTruthy();
Expand Down
Loading

0 comments on commit 34f07d9

Please sign in to comment.