Skip to content

Commit 05ccfa9

Browse files
fix. biome
1 parent 9659584 commit 05ccfa9

File tree

10 files changed

+34
-30
lines changed

10 files changed

+34
-30
lines changed

biome.json

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
"enabled": true,
55
"indentStyle": "tab"
66
},
7-
"assist": { "actions": { "source": { "organizeImports": "on" } } },
7+
"assist": {
8+
"actions": {
9+
"source": {
10+
"organizeImports": "on"
11+
}
12+
}
13+
},
814
"linter": {
915
"enabled": true,
1016
"rules": {
@@ -46,19 +52,8 @@
4652
"!**/hooks/**/*",
4753
"!**/fastlane/**/*",
4854
"!**/res/**/*",
49-
"!**/platforms/**/*"
50-
],
51-
"ignore": [
52-
"ace-builds",
53-
"www/js/**/*.js",
54-
"www/css/**/*.css",
55-
"src/plugins/**/*",
56-
"plugins/**/*",
57-
"hooks/**/*",
58-
"fastlane/**/*",
59-
"res/**/*",
60-
"platforms/**/*",
61-
"android/**"
55+
"!**/platforms/**/*",
56+
"!android/**"
6257
]
6358
}
6459
}

package-lock.json

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/fileSystem/internalFs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import fsOperation from "fileSystem";
12
import { Directory, Encoding, Filesystem } from "@capacitor/filesystem";
23
import ajax from "@deadlyjack/ajax";
34
import { data } from "autoprefixer";
4-
import fsOperation from "fileSystem";
55
import path from "path-browserify";
6-
import Url from "utils/Url";
76
import { decode, encode } from "utils/encodings";
87
import helpers from "utils/helpers";
98
import Url from "utils/Url";
9+
import Url from "utils/Url";
1010

1111
const internalFs = {
1212
/**

src/lib/checkFiles.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ export default async function checkFiles() {
4747
* @returns {Promise<void>}
4848
*/
4949
async function checkFile(file) {
50-
if (file === undefined || file.isUnsaved || !file.loaded || file.loading){
51-
return;
52-
}
53-
50+
if (file === undefined || file.isUnsaved || !file.loaded || file.loading) {
51+
return;
52+
}
5453

5554
if (file.uri) {
5655
const fs = fsOperation(file.uri);

src/lib/checkPluginsUpdate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import ajax from "@deadlyjack/ajax";
21
import internalFs from "fileSystem/internalFs";
2+
import ajax from "@deadlyjack/ajax";
33
import fsOperation from "../fileSystem";
44
import Url from "../utils/Url";
55

src/lib/installPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import fsOperation from "fileSystem";
2+
import fsOperation from "fileSystem";
3+
import internalFs from "fileSystem/internalFs";
24
import ajax from "@deadlyjack/ajax";
35
import alert from "dialogs/alert";
46
import confirm from "dialogs/confirm";
57
import loader from "dialogs/loader";
6-
import fsOperation from "fileSystem";
7-
import internalFs from "fileSystem/internalFs";
88
import purchaseListener from "handlers/purchase";
99
import JSZip from "jszip";
1010
import helpers from "utils/helpers";

src/lib/loadPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import fsOperation from "fileSystem";
22
import internalFs from "fileSystem/internalFs";
3-
import Url from "utils/Url";
43
import Page from "components/page";
54
import helpers from "utils/helpers";
65
import Url from "utils/Url";
6+
import Url from "utils/Url";
77
import actionStack from "./actionStack";
88

99
export default async function loadPlugin(pluginId, justInstalled = false) {

src/lib/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import "components/WebComponents";
1212

1313
import fsOperation from "fileSystem";
1414
import sidebarApps from "sidebarApps";
15+
import { App as CapacitorApp } from "@capacitor/app";
1516
import ajax from "@deadlyjack/ajax";
1617
import { setKeyBindings } from "ace/commands";
1718
import { initModes } from "ace/modelist";
@@ -52,8 +53,6 @@ import $_fileMenu from "views/file-menu.hbs";
5253
import $_menu from "views/menu.hbs";
5354
import auth, { loginEvents } from "./auth";
5455

55-
import { App as CapacitorApp } from "@capacitor/app";
56-
5756
const previousVersionCode = Number.parseInt(localStorage.versionCode, 10);
5857

5958
window.onload = Main;

src/lib/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import ajax from "@deadlyjack/ajax";
21
import fsOperation from "fileSystem";
2+
import ajax from "@deadlyjack/ajax";
33
import tutorial from "components/tutorial";
44
import alert from "dialogs/alert";
55
import box from "dialogs/box";

src/sidebarApps/extensions/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import "./style.scss";
22

33
import fsOperation from "fileSystem";
4+
import fsOperation from "fileSystem";
5+
import internalFs from "fileSystem/internalFs";
46
import ajax from "@deadlyjack/ajax";
57
import collapsableList from "components/collapsableList";
68
import Sidebar from "components/sidebar";
79
import alert from "dialogs/alert";
810
import prompt from "dialogs/prompt";
911
import select from "dialogs/select";
10-
import fsOperation from "fileSystem";
11-
import internalFs from "fileSystem/internalFs";
1212
import purchaseListener from "handlers/purchase";
1313
import constants from "lib/constants";
1414
import InstallState from "lib/installState";

0 commit comments

Comments
 (0)