Skip to content
Closed
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
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

39 changes: 0 additions & 39 deletions .eslintrc

This file was deleted.

13 changes: 13 additions & 0 deletions bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/

/* @preserve
* Leaflet Control Geocoder
* https://github.com/perliedman/leaflet-control-geocoder
*
* Copyright (c) 2012 sa3m (https://github.com/sa3m)
* Copyright (c) 2018 Per Liedman
* All rights reserved.
*/
53 changes: 53 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import js from '@eslint/js';

export default [
{
ignores: ['node_modules/**', 'bundle*.js', 'dist/**', 'debug/**']
},
{
files: ['src/**/*.js', 'i18n/**/*.js'],
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
globals: {
L: 'readonly',
// Node globals
global: 'readonly',
process: 'readonly',
Buffer: 'readonly',
__dirname: 'readonly',
__filename: 'readonly',
// Browser globals
window: 'readonly',
document: 'readonly',
navigator: 'readonly',
console: 'readonly'
}
},
rules: {
indent: [2, 2],
'comma-dangle': [2, 'never'],
'space-before-blocks': 2,
'keyword-spacing': 2,
'space-unary-ops': 2,
'no-use-before-define': [2, 'nofunc'],
camelcase: 0,
'comma-style': 2,
eqeqeq: 0,
'new-cap': 2,
'no-new': 2,
'brace-style': 2,
'no-multi-spaces': 0,
'no-underscore-dangle': 0,
'no-self-compare': 2,
'no-void': 2,
'no-eq-null': 2,
quotes: 0,
curly: 0,
'dot-notation': 0,
'no-shadow': 0,
'no-alert': 0,
'consistent-return': 0
}
}
];
Loading
Loading