Skip to content

Commit

Permalink
refactor: eslint upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
iseizuu committed Sep 28, 2024
1 parent 5431f29 commit 1e420ce
Show file tree
Hide file tree
Showing 38 changed files with 225 additions and 169 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ bin-release/
# information for Eclipse / Flash Builder.
node_modules
.npmignore
.eslintrc.json
yarn.lock
2 changes: 1 addition & 1 deletion dist/hoyo.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { hoyoResult, hoyolab } from "./typings";
import { hoyoResult, hoyolab } from "./typing";
export default class Hoyolab {
private client;
constructor();
Expand Down
16 changes: 8 additions & 8 deletions dist/hoyo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/structure/client.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Hoyolab from "../hoyo";
import Requested from "../utils/request";
import * as config from "../config";
import { hoyolab, hoyoResult } from "../typing";
export default class Client {
get: Requested;
readonly config: typeof config;
constructor();
decode(b64: string): string;
mihoyo(): Hoyolab;
mihoyo(query: hoyolab): Promise<hoyoResult>;
}
6 changes: 3 additions & 3 deletions dist/structure/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion dist/typings/enum.js → dist/typing/enum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion dist/typings/index.js → dist/typing/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion dist/typings/typing.js → dist/typing/typing.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utils/request.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions dist/wallpaper.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AnimeSource, dataImageFormat, hoyoResult, hoyolab, live2D, searchForWallhaven, searchOpt } from "./typings";
import { AnimeSource, dataImageFormat, hoyoResult, hoyolab, live2D, searchForWallhaven, searchOpt } from "./typing";
export declare class AnimeWallpaper {
private client;
constructor();
Expand All @@ -7,10 +7,9 @@ export declare class AnimeWallpaper {
*
* this function will return an array of queried anime wallpapers
*
* @param search.title the title of the anime you want to search.
* @param search.type the type or purity of image sfw or sketchy image or even both.
* @param search.page the page for image you want to search, default is 1
* @returns {dataImageFormat}
* @param {searchOpt | searchForWallhaven} options - The search options.
* @param {AnimeSource} [source=AnimeSource.WallHaven] - The source to search from.
* @returns {Promise<dataImageFormat[]>}
*/
search(options: searchOpt | searchForWallhaven, source?: AnimeSource): Promise<dataImageFormat[]>;
/**
Expand Down
Loading

0 comments on commit 1e420ce

Please sign in to comment.