From 6fde7bbfae80f5f7dfb11d1483ffa8ecc3f25b6d Mon Sep 17 00:00:00 2001 From: Bauke Date: Sat, 2 Mar 2024 13:35:08 +0100 Subject: [PATCH] Add cargo-make linting tasks. --- Makefile.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.toml b/Makefile.toml index f7c59f6..db0f29e 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -2,3 +2,17 @@ clear = true command = "bunx" args = ["--bun", "astro", "dev"] + +[tasks.lint] +clear = true +dependencies = ["lint-ts", "lint-scss"] + +[tasks.lint-ts] +clear = true +command = "bunx" +args = ["xo"] + +[tasks.lint-scss] +clear = true +command = "bunx" +args = ["--bun", "stylelint", "source/**/*.scss"]