chore: improve editor configuration

This commit is contained in:
Alessio Gravili 2024-03-08 00:11:00 -05:00
parent 705da5af75
commit 402892f2c2
7 changed files with 89 additions and 19 deletions

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<option name="fix-on-save" value="true" />
</component>
</project>

7
.idea/prettier.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PrettierConfiguration">
<option name="myConfigurationMode" value="AUTOMATIC" />
<option name="myRunOnSave" value="true" />
</component>
</project>

View File

@ -0,0 +1,17 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Dev (pnpm)" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="pnpm run dev" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="" />
<option name="SCRIPT_OPTIONS" value="" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/bin/zsh" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="true" />
<option name="EXECUTE_SCRIPT_FILE" value="false" />
<envs />
<method v="2" />
</configuration>
</component>

3
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
}

12
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,12 @@
{
"configurations": [
{
"command": "pnpm run dev",
"cwd": "${workspaceFolder}",
"name": "Run Dev (pnpm)",
"request": "launch",
"type": "node-terminal"
}
],
"version": "0.2.0"
}

59
.vscode/settings.json vendored
View File

@ -1,22 +1,41 @@
{ {
"workbench.colorCustomizations": { "npm.packageManager": "pnpm",
"activityBar.activeBackground": "#fa1b49", "editor.defaultFormatter": "esbenp.prettier-vscode",
"activityBar.background": "#fa1b49", "[typescript]": {
"activityBar.foreground": "#e7e7e7", "editor.defaultFormatter": "esbenp.prettier-vscode",
"activityBar.inactiveForeground": "#e7e7e799", "editor.formatOnSave": true,
"activityBarBadge.background": "#155e02", "editor.codeActionsOnSave": {
"activityBarBadge.foreground": "#e7e7e7", "source.fixAll.eslint": "explicit"
"commandCenter.border": "#e7e7e799", }
"sash.hoverBorder": "#fa1b49", },
"statusBar.background": "#dd0531", "[typescriptreact]": {
"statusBar.foreground": "#e7e7e7", "editor.defaultFormatter": "esbenp.prettier-vscode",
"statusBarItem.hoverBackground": "#fa1b49", "editor.formatOnSave": true,
"statusBarItem.remoteBackground": "#dd0531", "editor.codeActionsOnSave": {
"statusBarItem.remoteForeground": "#e7e7e7", "source.fixAll.eslint": "explicit"
"titleBar.activeBackground": "#dd0531", }
"titleBar.activeForeground": "#e7e7e7", },
"titleBar.inactiveBackground": "#dd053199", "[javascript]": {
"titleBar.inactiveForeground": "#e7e7e799" "editor.defaultFormatter": "esbenp.prettier-vscode",
}, "editor.formatOnSave": true,
"peacock.color": "#dd0531" "editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"editor.formatOnSaveMode": "file",
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
"typescript.tsdk": "node_modules/typescript/lib",
"[javascript][typescript][typescriptreact]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
} }