diff --git a/eslint.config.mjs b/eslint.config.mjs index 02858e9c0..a7994e02e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,30 +1,29 @@ -import standard from "eslint-plugin-standard"; -import promise from "eslint-plugin-promise"; -import globals from "globals"; -import path from "node:path"; -import { fileURLToPath } from "node:url"; -import js from "@eslint/js"; -import { FlatCompat } from "@eslint/eslintrc"; +import standard from 'eslint-plugin-standard' +import promise from 'eslint-plugin-promise' +import globals from 'globals' +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import js from '@eslint/js' +import { FlatCompat } from '@eslint/eslintrc' -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all -}); + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all +}) export default [{ - ignores: ["eslint.config.mjs", "**/*.min.js", "**/owl.*.js", "**/jquery.*.js", "**/hpneo.*.js"], -}, ...compat.extends("standard"), { - plugins: { - standard, - promise, - }, - - languageOptions: { - globals: { - ...globals.jquery, - }, - }, -}]; \ No newline at end of file + ignores: ['**/js/gmaps.init.js', '**/*.min.js', '**/owl.*.js', '**/jquery.*.js', '**/hpneo.*.js'] +}, ...compat.extends('standard'), { + plugins: { + standard, + promise + }, + languageOptions: { + globals: { + ...globals.jquery + } + } +}] diff --git a/static/js/gmaps.init.js b/static/js/gmaps.init.js index fac38e150..f8556c1c5 100644 --- a/static/js/gmaps.init.js +++ b/static/js/gmaps.init.js @@ -14,23 +14,23 @@ function map () { const styles = [ { - 'featureType': 'landscape', 'stylers': [{'saturation': -100}, {'lightness': 65}, {'visibility': 'on'}] + 'featureType': 'landscape', 'stylers': [{ 'saturation': -100 }, { 'lightness': 65 }, { 'visibility': 'on' }] }, { - 'featureType': 'poi', 'stylers': [{'saturation': -100}, {'lightness': 51}, {'visibility': 'simplified'}] + 'featureType': 'poi', 'stylers': [{ 'saturation': -100 }, { 'lightness': 51 }, { 'visibility': 'simplified' }] }, { - 'featureType': 'road.highway', 'stylers': [{'saturation': -100}, {'visibility': 'simplified'}] + 'featureType': 'road.highway', 'stylers': [{ 'saturation': -100 }, { 'visibility': 'simplified' }] }, { - 'featureType': 'road.arterial', 'stylers': [{'saturation': -100}, {'lightness': 30}, {'visibility': 'on'}] + 'featureType': 'road.arterial', 'stylers': [{ 'saturation': -100 }, { 'lightness': 30 }, { 'visibility': 'on' }] }, { - 'featureType': 'road.local', 'stylers': [{'saturation': -100}, {'lightness': 40}, {'visibility': 'on'}] + 'featureType': 'road.local', 'stylers': [{ 'saturation': -100 }, { 'lightness': 40 }, { 'visibility': 'on' }] }, { - 'featureType': 'transit', 'stylers': [{'saturation': -100}, {'visibility': 'simplified'}] + 'featureType': 'transit', 'stylers': [{ 'saturation': -100 }, { 'visibility': 'simplified' }] }, { - 'featureType': 'administrative.province', 'stylers': [{'visibility': 'off'}] + 'featureType': 'administrative.province', 'stylers': [{ 'visibility': 'off' }] }, { - 'featureType': 'water', 'elementType': 'labels', 'stylers': [{'visibility': 'on'}, {'lightness': -25}, {'saturation': -100}] + 'featureType': 'water', 'elementType': 'labels', 'stylers': [{ 'visibility': 'on' }, { 'lightness': -25 }, { 'saturation': -100 }] }, { - 'featureType': 'water', 'elementType': 'geometry', 'stylers': [{'hue': '#ffff00'}, {'lightness': -25}, {'saturation': -97}] + 'featureType': 'water', 'elementType': 'geometry', 'stylers': [{ 'hue': '#ffff00' }, { 'lightness': -25 }, { 'saturation': -97 }] } ]