Skip to content

Commit

Permalink
feat: update deps and format
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed May 24, 2024
1 parent 6295ab7 commit a2bbecc
Show file tree
Hide file tree
Showing 7 changed files with 606 additions and 727 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The control is [available from JsDelivr CDN](https://www.jsdelivr.com/projects/l

#### Add the JavaScript and CSS files

Then include the CSS and JavaScript files.
Then include the CSS and JavaScript files.

##### With CDN

Expand All @@ -50,9 +50,9 @@ In this example, we are loading the [files from the JsDelivr CDN](https://www.js
##### With `npm`

```ts
import 'leaflet.locatecontrol' // Import plugin
import 'leaflet.locatecontrol/dist/L.Control.Locate.min.css' // Import styles
import L from 'leaflet' // Import L from leaflet to start using the plugin
import "leaflet.locatecontrol"; // Import plugin
import "leaflet.locatecontrol/dist/L.Control.Locate.min.css"; // Import styles
import L from "leaflet"; // Import L from leaflet to start using the plugin
```

#### Add the following snippet to your map initialization:
Expand Down
6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Demo Leaflet.Locate - Leaflet</title>
<meta charset="utf-8" />
<meta content="width=device-width,initial-scale=1.0" name="viewport" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.9.2/dist/leaflet.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.css" />
<link rel="stylesheet" href="../dist/L.Control.Locate.min.css" />
<link rel="stylesheet" href="../demo/style.css" />
</head>
Expand All @@ -14,7 +14,7 @@
<div id="map"></div>
<div id="forkmeongithub"><a href="https://github.com/domoritz/leaflet-locatecontrol" target="_blank">Fork me on GitHub</a></div>

<script src="https://cdn.jsdelivr.net/npm/leaflet@1.9.2"></script>
<script src="https://cdn.jsdelivr.net/npm/leaflet@1.9.4"></script>
<script src="../src/L.Control.Locate.js"></script>
<script src="script.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion demo_mapbox/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Demo Leaflet.Locate - Mapbox.js</title>
Expand Down
20 changes: 20 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
const globals = require("globals");

module.exports = [
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
myCustomGlobal: "readonly"
}
}
},
{
ignores: ["*.min.js"]
},
eslintPluginPrettierRecommended
];
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@
"start": "grunt connect"
},
"devDependencies": {
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"grunt": "^1.5.3",
"eslint": "^9.3.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"grunt": "^1.6.1",
"grunt-bump": "0.8.0",
"grunt-contrib-connect": "^3.0.0",
"grunt-contrib-connect": "^4.0.0",
"grunt-contrib-sass": "^2.0.0",
"grunt-contrib-uglify": "^5.2.2",
"prettier": "^2.8.0",
"sass": "^1.56.1",
"stylelint": "^15.10.1",
"stylelint-config-prettier-scss": "^0.0.1",
"stylelint-config-recommended-scss": "^8.0.0",
"stylelint-prettier": "^2.0.0",
"stylelint-scss": "^4.3.0"
"prettier": "^3.2.5",
"sass": "^1.77.2",
"stylelint": "^16.6.0",
"stylelint-config-prettier-scss": "^1.0.0",
"stylelint-config-recommended-scss": "^14.0.0",
"stylelint-prettier": "^5.0.0",
"stylelint-scss": "^6.3.0"
}
}
Loading

0 comments on commit a2bbecc

Please sign in to comment.