Add prettier formatter

This commit is contained in:
Brian Bowman
2022-07-19 06:48:44 -05:00
parent dc20fe5916
commit bf2ae51fb0
5 changed files with 23 additions and 14 deletions

View File

@@ -28,7 +28,7 @@
"eject": "react-scripts eject",
"tauri": "tauri",
"start:dev": "tauri dev",
"format": "cargo fmt --manifest-path ./src-tauri/Cargo.toml --all",
"format": "cargo fmt --manifest-path ./src-tauri/Cargo.toml --all && yarn prettier --write --cache --loglevel warn .",
"lint": "cargo clippy --manifest-path ./src-tauri/Cargo.toml --no-default-features && yarn tsc --noEmit && yarn eslint src"
},
"eslintConfig": {
@@ -55,7 +55,9 @@
"@typescript-eslint/parser": "^5.22.0",
"cross-env": "^7.0.3",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-react": "^7.29.4",
"prettier": "^2.7.1",
"run-script-os": "^1.1.6"
}
}