Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Fix some ESLint errors in cvat-core (cvat-ai#5537)
Browse files Browse the repository at this point in the history
All of which are about old-style imports.
  • Loading branch information
SpecLad authored and mikhail-treskin committed Jul 1, 2023
1 parent 7e61336 commit b4d6509
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cvat-core/src/download.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

const Axios = require('axios');
import Axios from 'axios';

Axios.defaults.withCredentials = true;
Axios.defaults.xsrfHeaderName = 'X-CSRFTOKEN';
Expand Down
8 changes: 4 additions & 4 deletions cvat-core/src/project-implementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

import { Storage } from './storage';

const serverProxy = require('./server-proxy').default;
const { getPreview } = require('./frames');
import serverProxy from './server-proxy';
import { getPreview } from './frames';

const Project = require('./project').default;
const { exportDataset, importDataset } = require('./annotations');
import Project from './project';
import { exportDataset, importDataset } from './annotations';

export default function implementProject(projectClass) {
projectClass.prototype.save.implementation = async function () {
Expand Down
10 changes: 5 additions & 5 deletions cvat-core/src/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import { StorageLocation } from './enums';
import { Storage } from './storage';

const PluginRegistry = require('./plugins').default;
const { ArgumentError } = require('./exceptions');
const { Label } = require('./labels');
const User = require('./user').default;
const { FieldUpdateTrigger } = require('./common');
import PluginRegistry from './plugins';
import { ArgumentError } from './exceptions';
import { Label } from './labels';
import User from './user';
import { FieldUpdateTrigger } from './common';

/**
* Class representing a project
Expand Down

0 comments on commit b4d6509

Please sign in to comment.