Skip to content

Commit e7ae3d4

Browse files
committed
Fixed linter
1 parent 8304836 commit e7ae3d4

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed

eslint.config.mjs

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
import standard from "eslint-plugin-standard";
2-
import promise from "eslint-plugin-promise";
3-
import globals from "globals";
4-
import path from "node:path";
5-
import { fileURLToPath } from "node:url";
6-
import js from "@eslint/js";
7-
import { FlatCompat } from "@eslint/eslintrc";
1+
import standard from 'eslint-plugin-standard'
2+
import promise from 'eslint-plugin-promise'
3+
import globals from 'globals'
4+
import path from 'node:path'
5+
import { fileURLToPath } from 'node:url'
6+
import js from '@eslint/js'
7+
import { FlatCompat } from '@eslint/eslintrc'
88

9-
const __filename = fileURLToPath(import.meta.url);
10-
const __dirname = path.dirname(__filename);
9+
const __filename = fileURLToPath(import.meta.url)
10+
const __dirname = path.dirname(__filename)
1111
const compat = new FlatCompat({
12-
baseDirectory: __dirname,
13-
recommendedConfig: js.configs.recommended,
14-
allConfig: js.configs.all
15-
});
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
})
1616

1717
export default [{
18-
ignores: ["eslint.config.mjs", "**/*.min.js", "**/owl.*.js", "**/jquery.*.js", "**/hpneo.*.js"],
19-
}, ...compat.extends("standard"), {
20-
plugins: {
21-
standard,
22-
promise,
23-
},
24-
25-
languageOptions: {
26-
globals: {
27-
...globals.jquery,
28-
},
29-
},
30-
}];
18+
ignores: ['**/js/gmaps.init.js', '**/*.min.js', '**/owl.*.js', '**/jquery.*.js', '**/hpneo.*.js']
19+
}, ...compat.extends('standard'), {
20+
plugins: {
21+
standard,
22+
promise
23+
},
24+
languageOptions: {
25+
globals: {
26+
...globals.jquery
27+
}
28+
}
29+
}]

static/js/gmaps.init.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ function map () {
1414
const styles =
1515
[
1616
{
17-
'featureType': 'landscape', 'stylers': [{'saturation': -100}, {'lightness': 65}, {'visibility': 'on'}]
17+
'featureType': 'landscape', 'stylers': [{ 'saturation': -100 }, { 'lightness': 65 }, { 'visibility': 'on' }]
1818
}, {
19-
'featureType': 'poi', 'stylers': [{'saturation': -100}, {'lightness': 51}, {'visibility': 'simplified'}]
19+
'featureType': 'poi', 'stylers': [{ 'saturation': -100 }, { 'lightness': 51 }, { 'visibility': 'simplified' }]
2020
}, {
21-
'featureType': 'road.highway', 'stylers': [{'saturation': -100}, {'visibility': 'simplified'}]
21+
'featureType': 'road.highway', 'stylers': [{ 'saturation': -100 }, { 'visibility': 'simplified' }]
2222
}, {
23-
'featureType': 'road.arterial', 'stylers': [{'saturation': -100}, {'lightness': 30}, {'visibility': 'on'}]
23+
'featureType': 'road.arterial', 'stylers': [{ 'saturation': -100 }, { 'lightness': 30 }, { 'visibility': 'on' }]
2424
}, {
25-
'featureType': 'road.local', 'stylers': [{'saturation': -100}, {'lightness': 40}, {'visibility': 'on'}]
25+
'featureType': 'road.local', 'stylers': [{ 'saturation': -100 }, { 'lightness': 40 }, { 'visibility': 'on' }]
2626
}, {
27-
'featureType': 'transit', 'stylers': [{'saturation': -100}, {'visibility': 'simplified'}]
27+
'featureType': 'transit', 'stylers': [{ 'saturation': -100 }, { 'visibility': 'simplified' }]
2828
}, {
29-
'featureType': 'administrative.province', 'stylers': [{'visibility': 'off'}]
29+
'featureType': 'administrative.province', 'stylers': [{ 'visibility': 'off' }]
3030
}, {
31-
'featureType': 'water', 'elementType': 'labels', 'stylers': [{'visibility': 'on'}, {'lightness': -25}, {'saturation': -100}]
31+
'featureType': 'water', 'elementType': 'labels', 'stylers': [{ 'visibility': 'on' }, { 'lightness': -25 }, { 'saturation': -100 }]
3232
}, {
33-
'featureType': 'water', 'elementType': 'geometry', 'stylers': [{'hue': '#ffff00'}, {'lightness': -25}, {'saturation': -97}]
33+
'featureType': 'water', 'elementType': 'geometry', 'stylers': [{ 'hue': '#ffff00' }, { 'lightness': -25 }, { 'saturation': -97 }]
3434
}
3535
]
3636

0 commit comments

Comments
 (0)