Skip to content

Commit 6146841

Browse files
committed
enable noPropertyAccessFromIndexSignature to prevent issues like #20
1 parent cf5d1eb commit 6146841

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ import tsEslint from "typescript-eslint";
22
import config from "eslint-config-kyle";
33

44
export default tsEslint.config(...config, {
5-
rules: { quotes: ["error", "double"] },
5+
rules: {
6+
"dot-notation": "off",
7+
quotes: ["error", "double"],
8+
},
69
});

src/__tests__/e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const GribblehirstBbox = <const>[
2828
174.738948, -36.880984, 174.741083, -36.880065,
2929
];
3030

31-
const auth = process.env.OSM_AUTH || process.env.VITE_OSM_AUTH;
31+
const auth = process.env["OSM_AUTH"] || process.env["VITE_OSM_AUTH"];
3232

3333
describe("end to end tests", () => {
3434
beforeAll(() => {

src/api/changesets/uploadChangeset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function uploadChangeset(
5454
} else {
5555
// there is no custom implementation,
5656
// so add some default tags to the changeset.
57-
tagsForChunk.chunk = `${index + 1}/${chunks.length}`;
57+
tagsForChunk["chunk"] = `${index + 1}/${chunks.length}`;
5858
}
5959
}
6060

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"stripInternal": true,
1212
"skipLibCheck": true,
1313
"forceConsistentCasingInFileNames": false,
14+
"noPropertyAccessFromIndexSignature": true,
1415
"outDir": "dist"
1516
},
1617
"include": ["src"]

0 commit comments

Comments
 (0)