Last active
October 6, 2023 20:39
-
-
Save james2doyle/6102afb6800736c9edcedfdb65c3f6a2 to your computer and use it in GitHub Desktop.
A sublime project file for Next.js React 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.*", "*.snap", "*lock*"], | |
"folder_exclude_patterns": [ | |
".sanity", | |
".astro", | |
".netlify", | |
".next", | |
".vercel", | |
".cache", | |
"out", | |
"dist", | |
"node_modules" | |
], | |
"path": "." | |
} | |
], | |
"build_systems": [ | |
{ | |
"name": "Project - Build", | |
"working_dir": "$project_path", | |
"shell_cmd": "pnpm run build" | |
}, | |
{ | |
"name": "Project - Test", | |
"working_dir": "$project_path", | |
"shell_cmd": "pnpm run 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": "pnpm run test:snapshots" | |
}, | |
{ | |
"name": "Project - Test File", | |
"working_dir": "$project_path", | |
"shell_cmd": "pnpm run test -- $file_base_name.spec" | |
}, | |
{ | |
"name": "Project - Test File Snapshot", | |
"working_dir": "$project_path", | |
"shell_cmd": "pnpm run test:snapshots -- $file_base_name.spec" | |
}, | |
{ | |
"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