Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: better of with → better off with (#2483)

Andrew Dunbar834eddd97d90
diff --git a/harper-core/src/linting/weir_rules/BetterOffWith.weir b/harper-core/src/linting/weir_rules/BetterOffWith.weir
new file mode 100644
index 000000000..c550fba49
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/BetterOffWith.weir
@@ -0,0 +1,8 @@
+expr main (better of with)
+
+let message "This phrase uses the word `off`."
+let description "Corrects `better of with` to `better off with`."
+let kind "Typo"
+let becomes "better off with"
+
+test "If you're wanting dynamic meta data, your might be better of with getServerSideProps ." "If you're wanting dynamic meta data, your might be better off with getServerSideProps ."
\ No newline at end of file