Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build errors #279

Merged
merged 11 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x] # canvas won't work on node 22.x until v3 is released
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
24 changes: 24 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import prettier from "eslint-config-prettier";
import tseslint from "typescript-eslint";

export default [
prettier,
...tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/no-dupe-class-members": ["error"],

"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],

"@typescript-eslint/no-useless-constructor": ["error"],
"no-undef": "off",
"@typescript-eslint/no-explicit-any": "off",
},
},
];
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<script src="https://unpkg.com/maplibre-gl@4.0.0-pre.2/dist/maplibre-gl.js"></script>
<script src="https://unpkg.com/maplibre-gl@4.6.0/dist/maplibre-gl.js"></script>
<script src="https://unpkg.com/[email protected]/dist/index.min.js"></script>
<link
href="https://unpkg.com/maplibre-gl@4.0.0-pre.2/dist/maplibre-gl.css"
href="https://unpkg.com/maplibre-gl@4.6.0/dist/maplibre-gl.css"
rel="stylesheet"
/>
<style>
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export default {
testEnvironment: "jsdom",
setupFiles: ["<rootDir>/src/setup-jest.ts"],
testMatch: ["<rootDir>/src/**/*.test.{ts,js}"],
transformIgnorePatterns: [`node_modules/.*`],
transformIgnorePatterns: ["!<rootDir>/node_modules/"],
};
Loading
Loading