]> git.openstreetmap.org Git - nominatim-ui.git/commit
Add eslint linter (#52)
authormtmail <mtmail@gmx.net>
Tue, 2 Feb 2021 23:31:11 +0000 (00:31 +0100)
committerGitHub <noreply@github.com>
Tue, 2 Feb 2021 23:31:11 +0000 (00:31 +0100)
commitc636646759d9c541f7baf19812be18d002a8ce1d
treecb415862aa0d09dc480f36ecabd2e911a1f53206
parent76e3136f32e35ded2caf989b0bf699de64798921
Add eslint linter (#52)

* Add eslint and configuration. it reports 114 issues

* eslint: fix spacing, semicolons, long lines, == vs ===

* eslint: remove unused variables

* eslint: allow function use before declaration. function are hoisted, so safe, and it adds to readability

* eslint: fix reused variable names (no-shadow)

* eslint: disable no-label-var rule for *.svelte files as it misreports reactive-statements
22 files changed:
.eslintrc.js [new file with mode: 0644]
dist/build/bundle.css
dist/build/bundle.js
dist/build/bundle.js.map
package.json
src/App.svelte
src/components/DetailsIndex.svelte
src/components/DetailsOneRow.svelte
src/components/Map.svelte
src/components/MapIcon.svelte
src/components/MapPosition.svelte
src/components/ResultsList.svelte
src/components/SearchBar.svelte
src/lib/api_utils.js
src/lib/helpers.js
src/lib/stores.js
src/main.js
src/pages/DeletablePage.svelte
src/pages/DetailsPage.svelte
src/pages/PolygonsPage.svelte
src/pages/SearchPage.svelte
yarn.lock