Skip to content

Commit

Permalink
Merge pull request #2660 from ZakarFin/lib-updates
Browse files Browse the repository at this point in the history
Update ESLint and plugins
  • Loading branch information
ZakarFin authored Sep 2, 2024
2 parents 40520c9 + 621a953 commit 08cab85
Show file tree
Hide file tree
Showing 25 changed files with 6 additions and 31 deletions.
1 change: 0 additions & 1 deletion bundles/admin/admin-announcements/instance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { AdminAnnouncementsHandler } from './service/AdminAnnouncementsHandler';

const BasicBundle = Oskari.clazz.get('Oskari.BasicBundle');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Oskari.clazz.define('Oskari.mapframework.publisher.tool.CoordinateTool',
function () {
}, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @class Oskari.mapframework.bundle.layerlist.request.AddLayerListFilterRequestHandler
* Handles Oskari.mapframework.bundle.layerlist.request.AddLayerListFilterRequest to show filter.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { StateHandler, controllerMixin } from 'oskari-ui/util';
import { LayerListHandler } from './LayerList';
import { SelectedLayersHandler } from './SelectedLayers';
Expand Down
1 change: 0 additions & 1 deletion bundles/framework/printout/instance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import React from 'react';
import { Message } from 'oskari-ui';
import { Messaging } from 'oskari-ui/util';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export class AbstractPublisherTool {
constructor (sandbox, mapmodule, localization = {}) {
// override to change group (tool panel is created for each unique group)
Expand Down
1 change: 0 additions & 1 deletion bundles/framework/publisher2/util/util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export const isEmpty = (value) => {
if (value === null) {
return true;
Expand Down
1 change: 0 additions & 1 deletion bundles/framework/publisher2/view/PanelLayout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import React from 'react';
import ReactDOM from 'react-dom';
import { PanelToolStyles } from './PanelToolStyles';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @class Oskari.mapframework.bundle.userguide.request.ShowUserGuideRequest
*
Expand Down
1 change: 0 additions & 1 deletion bundles/mapping/mapmodule/LocationModule.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const errorCodes = { 1: 'denied', 2: 'unavailable', 3: 'timeout' };
const sandbox = Oskari.getSandbox();
const log = Oskari.log('Oskari.mapframework.module.LocationModule');
Expand Down
1 change: 0 additions & 1 deletion bundles/mapping/mapmodule/MapModuleClass.ol.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import * as olExtent from 'ol/extent';
import { defaults as olInteractionDefaults } from 'ol/interaction';
import KeyboardPan from 'ol/interaction/KeyboardPan';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// protocols that can be removed from url labels
const WELL_KNOWN_PROTO = ['http://', 'https://'];
// for reasonable breakpoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @class Oskari.mapframework.mapmodule.getinfoplugin.request.ResultHandlerRequestHandler
* Handles Oskari.mapframework.mapmodule.getinfoplugin.request.ResultHandlerRequest to handle getinfo results.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @class Oskari.mapframework.mapmodule.getinfoplugin.request.SwipeStatusRequestHandler
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const MARKER_ID = 'SEARCH_RESULT_MARKER';
const RESULTS_LAYER_ID = 'SEARCH_RESULT_LAYER';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import '../../../../src/global';
import { VectorFeatureSelectionService } from './VectorFeatureSelectionService';

Expand Down
1 change: 0 additions & 1 deletion bundles/mapping/mapmodule/service/map.state.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import '../../../../src/global';
import '../domain/AbstractLayer';
import '../resources/locale/en.js';
Expand Down
1 change: 0 additions & 1 deletion bundles/mapping/mapmodule/util/MapThemeHelper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { DEFAULT_COLORS } from 'oskari-ui/theme';

const CSS_CLASS_PREFIX_FONT = 'oskari-theme-font-';
Expand Down
1 change: 0 additions & 1 deletion bundles/mapping/mapmodule/util/vectorfeatures/mvtHelper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export const getMVTFeaturesInExtent = (source, extent, idPropName = 'id') => {
const featuresById = new Map();
const features = source.getFeaturesInExtent(extent);
Expand Down
1 change: 0 additions & 1 deletion bundles/mapping/maprotator/publisher/MapRotator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Oskari.clazz.define('Oskari.mapping.publisher.tool.MapRotator',
function () {
}, {
Expand Down
1 change: 0 additions & 1 deletion bundles/statistics/statsgrid/Tile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { FLYOUTS } from './handler/ViewHandler';
import './resources/scss/tile.scss';

Expand Down
2 changes: 0 additions & 2 deletions bundles/statistics/statsgrid/handler/IndicatorHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ export const saveIndicatorData = async (indicator, data, regionsetId) => {
// Flush cache as update is implemented only for quest user
removeIndicatorFromCache({ ds: indicator.ds });
flushIndicatorMetadataCache(indicator);
return;
} catch (error) {
throw new Error('Error saving data to server');
}
Expand Down Expand Up @@ -298,7 +297,6 @@ export const deleteIndicator = async (indicator, regionsetId) => {
flushDataCache();
// Flush caches as update is implemented only for quest user
removeIndicatorFromCache({ ds: indicator.ds });
return;
} catch (error) {
throw new Error('Error on server');
}
Expand Down
1 change: 0 additions & 1 deletion bundles/statistics/statsgrid2016/Tile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Oskari.clazz.define('Oskari.statistics.statsgrid.Tile', function (instance, service) {
this.instance = instance;
this.sb = this.instance.getSandbox();
Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

module.exports = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: [
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
"dompurify": "2.3.6",
"draft-js": "0.11.7",
"draft-js-export-html": "1.4.1",
"eslint": "8.35.0",
"eslint-config-standard": "17.0.0",
"eslint-import-resolver-webpack": "0.13.2",
"eslint-plugin-import": "2.27.5",
"eslint": "8.57.0",
"eslint-config-standard": "17.1.0",
"eslint-import-resolver-webpack": "0.13.8",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-promise": "6.6.0",
"eslint-plugin-react": "7.35.0",
"expose-loader": "1.0.3",
"file-loader": "6.2.0",
"fs-extra": "10.0.1",
Expand Down

0 comments on commit 08cab85

Please sign in to comment.