@@ -5,52 +5,9 @@ Explore the power of ast-grep with these rewriting rules that can transform your
55
66Feel free to join our [ Discord] ( https://discord.gg/4YZjf6htSQ ) channel and ask @ast-grep-bot to explain the rules for you line by line!
77
8- * [ C] ( /catalog/c/ )
9- * [ Match Function Call] ( /catalog/c/#match-function-call )
10- * [ Rewrite Method to Function Call] ( /catalog/c/#rewrite-method-to-function-call )
11- * [ Rewrite Check to Yoda Condition] ( /catalog/c/#rewrite-check-to-yoda-condition )
12- * [ C++] ( /catalog/cpp/ )
13- * [ Fix Format String Vulnerability] ( /catalog/cpp/#fix-format-string-vulnerability )
14- * [ Go] ( /catalog/go/ )
15- * [ Match Function Call] ( /catalog/go/#match-function-call )
16- * [ Find function declarations with names of certain pattern] ( /catalog/go/#find-function-declarations-with-names-of-certain-pattern )
17- * [ HTML] ( /catalog/go/ )
18- * [ Upgrade Ant Design Vue] ( /catalog/html/#upgrade-ant-design-vue )
19- * [ Extract i18n Keys] ( /catalog/html/#extract-i18n-keys )
20- * [ Java] ( /catalog/java/ )
21- * [ No Unused Vars] ( /catalog/java/#no-unused-vars )
22- * [ Kotlin] ( /catalog/kotlin/ )
23- * [ Ensure Clean Architecture] ( /catalog/kotlin/#ensure-clean-architecture )
24- * [ Python] ( /catalog/python/ )
25- * [ Migrate OpenAi SDK] ( /catalog/python/#migrate-openai-sdk )
26- * [ Use Walrus Operator in ` if ` statement] ( /catalog/python/#use-walrus-operator-in-if-statement )
27- * [ Prefer Generator Expressions] ( /catalog/python/#prefer-generator-expressions )
28- * [ Remove ` async ` function] ( /catalog/python/#remove-async-function )
29- * [ Rewrite ` Optional[Type] ` to ` Type | None ` ] ( /catalog/python/#rewrite-optional-type-to-type-none )
30- * [ Refactor pytest fixtures] ( /catalog/python/#refactor-pytest-fixtures )
31- * [ Ruby] ( /catalog/ruby/ )
32- * [ Prefer Symbol over Proc] ( /catalog/ruby/#prefer-symbol-over-proc )
33- * [ Migrate action_filter in Ruby on Rails] ( /catalog/ruby/#migrate-action-filter-in-ruby-on-rails )
34- * [ Rust] ( /catalog/rust/ )
35- * [ Avoid Duplicated Exports] ( /catalog/rust/#avoid-duplicated-exports )
36- * [ Get number of digits in a ` usize ` ] ( /catalog/rust/#get-number-of-digits-in-a-usize )
37- * [ Beware of char offset when iterate over a string] ( /catalog/rust/#beware-of-char-offset-when-iterate-over-a-string )
38- * [ Rewrite ` indoc! ` macro] ( /catalog/rust/#rewrite-indoc-macro )
39- * [ TypeScript] ( /catalog/typescript/ )
40- * [ Repository of ESLint rules 🔗] ( https://github.com/ast-grep/eslint/ )
41- * [ No ` await ` in ` Promise.all ` ] ( /catalog/typescript/#no-await-in-promise-all-array )
42- * [ No ` console ` except in ` catch ` block] ( /catalog/typescript/#no-console-except-in-catch-block )
43- * [ Find Import File without Extension] ( /catalog/typescript/#find-import-file-without-extension )
44- * [ Migrate XState to V5 from V4] ( /catalog/typescript/#migrate-xstate-to-v5-from-v4 )
45- * [ Find Import Usage] ( /catalog/typescript/#find-import-usage )
46- * [ Switch Chai from ` should ` style to ` expect ` ] ( /catalog/typescript/#switch-chai-from-should-style-to-expect )
47- * [ TSX] ( /catalog/tsx/ )
48- * [ Avoid ` && ` short circuit in JSX] ( /catalog/tsx/#avoid-short-circuit-in-jsx )
49- * [ Rewrite MobX Component Style] ( /catalog/tsx/#rewrite-mobx-component-style )
50- * [ Unnecessary React Hook] ( /catalog/tsx/#avoid-unnecessary-react-hook )
51- * [ Unnecessary ` useState ` Type] ( /catalog/tsx/#unnecessary-usestate-type )
52- * [ Reverse React Compiler™] ( /catalog/tsx/#reverse-react-compilertm )
53- * [ Avoid nested links] ( /catalog/tsx/#avoid-nested-links )
54- * [ Rename SVG Attribute] ( /catalog/tsx/#rename-svg-attribute )
55- * [ YAML] ( /catalog/yaml/ )
56- * [ Find key/value and show message] ( /catalog/yaml/#find-key-value-and-show-message-using-those-key-vals )
8+
9+ <script setup >
10+ import Catalog from ' ../src/catalog/index.vue'
11+ </script >
12+
13+ <Catalog />
0 commit comments