Skip to content

Commit

Permalink
Fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfox1985 committed Oct 9, 2024
1 parent 8304836 commit e7ae3d4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 35 deletions.
51 changes: 25 additions & 26 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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,
},
},
}];
ignores: ['**/js/gmaps.init.js', '**/*.min.js', '**/owl.*.js', '**/jquery.*.js', '**/hpneo.*.js']
}, ...compat.extends('standard'), {
plugins: {
standard,
promise
},
languageOptions: {
globals: {
...globals.jquery
}
}
}]
18 changes: 9 additions & 9 deletions static/js/gmaps.init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }]
}
]

Expand Down

0 comments on commit e7ae3d4

Please sign in to comment.