Skip to content

Commit 89f5c43

Browse files
committed
refactor: replace lint-staged with full project lint scripts and update mount plugin command attributes
1 parent 03f8204 commit 89f5c43

4 files changed

Lines changed: 3 additions & 122 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx lint-staged
1+
npm run lint:all

package-lock.json

Lines changed: 0 additions & 105 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"lint:fix": "ng lint --fix",
1919
"format": "prettier --write \"src/**/*.{ts,html,scss,json}\"",
2020
"format:check": "prettier --check \"src/**/*.{ts,html,scss,json}\"",
21-
"lint:rust": "cd src-tauri && cargo clippy -- -D warnings",
21+
"lint:rust": "cd src-tauri && cargo clippy --all-targets --all-features -- -D warnings",
2222
"format:rust": "cd src-tauri && cargo fmt",
2323
"format:rust:check": "cd src-tauri && cargo fmt -- --check",
2424
"lint:all": "npm run lint && npm run format:check && npm run lint:rust && npm run format:rust:check",
@@ -29,19 +29,6 @@
2929
"sync:providers": "node scripts/update-providers.cjs",
3030
"prepare": "husky"
3131
},
32-
"lint-staged": {
33-
"*.{ts,html}": [
34-
"eslint --fix",
35-
"prettier --write"
36-
],
37-
"*.{scss,json}": [
38-
"prettier --write"
39-
],
40-
"src-tauri/src/**/*.rs": [
41-
"sh -c 'cd src-tauri && cargo fmt'",
42-
"sh -c 'cd src-tauri && cargo clippy -- -D warnings'"
43-
]
44-
},
4532
"private": true,
4633
"dependencies": {
4734
"@angular/cdk": "^21.2.11",
@@ -97,7 +84,6 @@
9784
"karma-coverage": "~2.2.1",
9885
"karma-jasmine": "~5.1.0",
9986
"karma-jasmine-html-reporter": "~2.2.0",
100-
"lint-staged": "^17.0.4",
10187
"prettier": "^3.8.3",
10288
"typescript": "^5.9.3",
10389
"typescript-eslint": "^8.59.3"

src-tauri/src/core/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ macro_rules! MASTER_COMMAND_LIST {
201201
// =================================================================
202202
// MOUNT PLUGIN
203203
// =================================================================
204-
(check_mount_plugin_installed, $crate::utils::rclone::mount::check_mount_plugin_installed, [], [no_app]);
204+
(check_mount_plugin_installed, $crate::utils::rclone::mount::check_mount_plugin_installed, [], [sync, no_app, infallible]);
205205
#[cfg(any(target_os = "macos", target_os = "windows"))]
206206
(install_mount_plugin, $crate::utils::rclone::mount::install_mount_plugin, []);
207207
#[cfg(not(any(target_os = "macos", target_os = "windows")))]

0 commit comments

Comments
 (0)