Skip to content

Commit cee470a

Browse files
v1.1.0
1 parent 1e5d970 commit cee470a

File tree

8 files changed

+5929
-1695
lines changed

8 files changed

+5929
-1695
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
npm test
5+
npm run lint
56
npm run build:esm

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
6+
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.1.0] - 2022-04-22
9+
10+
## Changed
11+
12+
- React v18, Leaflet v1.8, and react-leaflet v4.0 are now required as peer dependencies.
13+
14+
[1.1.0]: https://github.com/elkrange/maroon-bells-react-integration/compare/v1.0.1...v1.1.0

__tests__/ResetViewControl.spec.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import React from "react";
2+
13
import { render, screen } from "@testing-library/react";
24
import userEvent from "@testing-library/user-event";
35
import "@testing-library/jest-dom";
46

57
import { MapContainer, useMapEvents } from "react-leaflet";
68
import ResetViewControl from "../src/ResetViewControl";
7-
import { ResetViewControlOptions } from "../src/ResetViewControl";
9+
10+
import type { ResetViewControlOptions } from "../src/ResetViewControl";
811

912
describe("ResetViewControl", () => {
1013
const mockHandleViewReset = jest.fn();

babel.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
presets: [
3+
"@babel/preset-env",
4+
"@babel/preset-typescript",
5+
"@babel/preset-react",
6+
],
7+
};

0 commit comments

Comments
 (0)