X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c636646759d9c541f7baf19812be18d002a8ce1d..161644ac1e2a9ec708e72bc5f33b61657488be2b:/.eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js index c453039..95d8b34 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,7 @@ module.exports = { extends: [ - 'airbnb-base/legacy' + 'airbnb-base/legacy', + 'plugin:mocha/recommended' ], parserOptions: { ecmaVersion: 2019, @@ -11,7 +12,8 @@ module.exports = { jquery: true }, plugins: [ - 'svelte3' + 'svelte3', + 'mocha' ], overrides: [ { @@ -46,6 +48,12 @@ module.exports = { rules: { 'no-label-var': 'off' // eslint thinks $: (https://svelte.dev/tutorial/reactive-statements) are labels } + }, + { + files: ['test/**'], + globals: { + browser: true + } } ] };