v1.0.0
This tool refactors your code automatically by using OpenAI API.
Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Versions
Auto Refactor
This tool refactors your code automatically by using OpenAI API.
Usage
Creaet instruction file. ex) instruction.yaml
- targetFileGlob: src/**/*.tsx
filterFunction: |-
(filePath, content) => {
// only match Japanese characters
return content.match(/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff]/);
}
instruction: |
Wrap the text with `<Text>` component.
DO NOT wrap the text wrapped with `<Button>` component.
- targetFileGlob: src/**/*.md
instruction: |
H1 header must be only one.
Rpelace other H1 headers with H2 headers.Run this tool.
[WIP]Warning
This tool overwrites your files. Please use version control system and backup your files before running this tool.