From 50ba85401d39c0174c795ffaa2118d797d3f90f8 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Mon, 27 May 2024 22:16:38 +0900 Subject: [PATCH] feat: check for typos --- .pre-commit-config.yaml | 11 +++++++++-- flake.nix | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d644695..1a690fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,9 +20,16 @@ repos: stages: [commit] - id: prettier - name: Check css, scss, js and ts formatting + name: Check css, scss, js, ts and yaml formatting entry: prettier language: system - files: .*\.(css|scss|js|ts)$ + files: .*\.(css|scss|js|ts|yaml)$ args: [-c] stages: [commit] + + - id: typos + name: Check for typos + entry: typos + language: system + files: .* + stages: [commit] diff --git a/flake.nix b/flake.nix index 7048435..cebca5d 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,7 @@ pre-commit nixfmt-rfc-style nodePackages.prettier + typos ]; shellHook = '' ${pkgs.pre-commit}/bin/pre-commit install -f