X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/blobdiff_plain/c636646759d9c541f7baf19812be18d002a8ce1d..a4d91ff557a71d80f997b03b213acf1664e64ace:/.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 + } } ] };