Last active
October 6, 2023 20:39
-
-
Save james2doyle/b857e1a4621c32f00b7438d6f615f699 to your computer and use it in GitHub Desktop.
A sublime project file for Typescript code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"folders": [ | |
{ | |
"file_exclude_patterns": [ | |
".gitkeep", | |
"*.min.*", | |
"*.ts.snap", | |
"*lock*" | |
], | |
"folder_exclude_patterns": [ | |
".sanity", | |
".astro", | |
".netlify", | |
".next", | |
".nuxt", | |
".vercel", | |
".cache", | |
".yarn", | |
"out", | |
"dist", | |
"node_modules" | |
], | |
"path": "." | |
} | |
], | |
"build_systems": [ | |
{ | |
"name": "Project - Build", | |
"working_dir": "$project_path", | |
"shell_cmd": "npm build" | |
}, | |
{ | |
"name": "Project - Storybook", | |
"working_dir": "$project_path", | |
"shell_cmd": "npm storybook" | |
}, | |
{ | |
"name": "Project - Test", | |
"working_dir": "$project_path", | |
"shell_cmd": "npm test" | |
}, | |
{ | |
"name": "Project - Open Test", | |
"working_dir": "$project_path", | |
"shell_cmd": "find tests -print | grep $file_base_name.spec | sed -n 1p | xargs subl" | |
}, | |
{ | |
"name": "Project - Test Snapshots", | |
"working_dir": "$project_path", | |
"shell_cmd": "npm test:snapshots" | |
}, | |
{ | |
"name": "Project - Test File", | |
"working_dir": "$project_path", | |
"shell_cmd": "npm test $file_base_name" | |
}, | |
{ | |
"name": "Project - Test File Snapshot", | |
"working_dir": "$project_path", | |
"shell_cmd": "npm test:snapshots $file_base_name" | |
}, | |
{ | |
"name": "Project - Format README.md", | |
"working_dir": "$project_path", | |
"shell_cmd": "mdformat $file" | |
} | |
], | |
"settings": { | |
"match_brackets_angle": true, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"jsdocs_return_tag": "@return", | |
"lsp_format_on_save": false, | |
"lsp_code_actions_on_save": { | |
"source.organizeImports": false, | |
"source.fixAll.eslint": true | |
} | |
}, | |
"syntax_override": { | |
"\\.env.*$": ["ShellScript", "Shell-Unix-Generic"], | |
"\\.*rc$": ["JSON", "JSON"], | |
"\\.ts.snap$": ["JavaScript", "TypeScript"], | |
"\\.css$": ["Tailwind CSS", "Tailwind CSS"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment