未验证 提交 f0311a92 编写于 作者: R Roman Donchenko 提交者: GitHub

Fix some ESLint errors in cvat-core (#5537)

All of which are about old-style imports.
上级 d2a48306
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
const Axios = require('axios'); import Axios from 'axios';
Axios.defaults.withCredentials = true; Axios.defaults.withCredentials = true;
Axios.defaults.xsrfHeaderName = 'X-CSRFTOKEN'; Axios.defaults.xsrfHeaderName = 'X-CSRFTOKEN';
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
import { Storage } from './storage'; import { Storage } from './storage';
const serverProxy = require('./server-proxy').default; import serverProxy from './server-proxy';
const { getPreview } = require('./frames'); import { getPreview } from './frames';
const Project = require('./project').default; import Project from './project';
const { exportDataset, importDataset } = require('./annotations'); import { exportDataset, importDataset } from './annotations';
export default function implementProject(projectClass) { export default function implementProject(projectClass) {
projectClass.prototype.save.implementation = async function () { projectClass.prototype.save.implementation = async function () {
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
import { StorageLocation } from './enums'; import { StorageLocation } from './enums';
import { Storage } from './storage'; import { Storage } from './storage';
const PluginRegistry = require('./plugins').default; import PluginRegistry from './plugins';
const { ArgumentError } = require('./exceptions'); import { ArgumentError } from './exceptions';
const { Label } = require('./labels'); import { Label } from './labels';
const User = require('./user').default; import User from './user';
const { FieldUpdateTrigger } = require('./common'); import { FieldUpdateTrigger } from './common';
/** /**
* Class representing a project * Class representing a project
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册