refactor: 使用eslint.config.js替换.eslintrc.js并遵循esm语法 (#786)

This commit is contained in:
xiaoming
2023-11-10 23:18:01 +08:00
committed by GitHub
parent 18158f8e0d
commit 5b7dd8c3e2
102 changed files with 431 additions and 424 deletions

View File

@@ -1,9 +1,9 @@
import Axios, {
AxiosInstance,
AxiosRequestConfig,
CustomParamsSerializer
type AxiosInstance,
type AxiosRequestConfig,
type CustomParamsSerializer
} from "axios";
import {
import type {
PureHttpError,
RequestMethods,
PureHttpResponse,

View File

@@ -1,4 +1,4 @@
import Axios, {
import type {
Method,
AxiosError,
AxiosResponse,

View File

@@ -1,5 +1,5 @@
import forage from "localforage";
import { LocalForage, ProxyStorage, ExpiresData } from "./types.d";
import type { LocalForage, ProxyStorage, ExpiresData } from "./types.d";
class StorageProxy implements ProxyStorage {
protected storage: LocalForage;

View File

@@ -1,4 +1,4 @@
import { type VNode } from "vue";
import type { VNode } from "vue";
import { isFunction } from "@pureadmin/utils";
import { type MessageHandler, ElMessage } from "element-plus";

View File

@@ -2,8 +2,8 @@ import type { CSSProperties, VNodeChild } from "vue";
import {
createTypes,
toValidableType,
VueTypesInterface,
VueTypeValidableDef
type VueTypesInterface,
type VueTypeValidableDef
} from "vue-types";
export type VueNode = VNodeChild | JSX.Element;

View File

@@ -1,5 +1,5 @@
// 响应式storage
import { App } from "vue";
import type { App } from "vue";
import Storage from "responsive-storage";
import { routerArrays } from "@/layout/types";
import { responsiveStorageNameSpace } from "@/config";

View File

@@ -40,8 +40,8 @@ import { subBefore, getQueryMap } from "@pureadmin/utils";
setToken(params);
// 删除不需要显示在 url 的参数
delete params["roles"];
delete params["accessToken"];
delete params.roles;
delete params.accessToken;
const newUrl = `${location.origin}${location.pathname}${subBefore(
location.hash,