(ide) add default configuration for JetBrains IDEs

This commit is contained in:
Valentyne Stigloher 2024-02-03 22:09:36 +01:00
parent b1a7876fa7
commit c23873da43
5 changed files with 55 additions and 4 deletions

5
.gitignore vendored
View File

@ -106,7 +106,10 @@ dist
.serverless .serverless
# IDE / Editor # IDE / Editor
.idea .idea/*
!.idea/jsLinters
!.idea/runConfigurations
!.idea/vcs.xml
# Service worker # Service worker
sw.* sw.*

7
.idea/jsLinters/eslint.xml generated Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<files-pattern value="**/*.{js,json,suml,vue,yml}" />
<option name="fix-on-save" value="true" />
</component>
</project>

View File

@ -0,0 +1,11 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="All Tests" type="JavaScriptTestRunnerJest" nameIsGenerated="true">
<node-interpreter value="project" />
<node-options value="--experimental-vm-modules" />
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
<working-dir value="$PROJECT_DIR$" />
<envs />
<scope-kind value="ALL" />
<method v="2" />
</configuration>
</component>

20
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="IssueNavigationConfiguration">
<option name="links">
<list>
<IssueNavigationLink>
<option name="issueRegexp" value="!(\d+)" />
<option name="linkRegexp" value="https://gitlab.com/PronounsPage/PronounsPage/-/merge_requests/$1" />
</IssueNavigationLink>
<IssueNavigationLink>
<option name="issueRegexp" value="#(\d+)" />
<option name="linkRegexp" value="https://gitlab.com/PronounsPage/PronounsPage/-/issues/$1" />
</IssueNavigationLink>
</list>
</option>
</component>
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -77,12 +77,22 @@ SECRET=replaceThis
### Editor ### Editor
Some libraries like Vue recommend using Visual Studio Code as editor. #### Visual Studio Code
There are some recommended extensions in `.vscode/extensions.json` to help with development. Recommended extensions are provided in `.vscode/extensions.json`
and Visual Studio Code will ask for your permission to install them upon project open.
`.vscode/settings.json` already includes settings to integrate with tooling.
#### JetBrains IDE (WebStorm, PhpStorm, …)
Most of the tooling is already shipped with a JetBrains IDE.
`.idea` already contains some settings to integrate with the tooling.
If you want syntax highlighting for `.suml` files, you need to manually bind them to `yaml` syntax
via `Settings Editor File Types`.
#### Others
When you want to use a different editor, you may need to configure some points to reduce manual work: When you want to use a different editor, you may need to configure some points to reduce manual work:
- Integrating ESLint with auto-fixing on save (the formatting relies on it) - Integrating ESLint with auto-fixing on save (the formatting relies on it)
- Integration Jest to easily view test results - Integrating Jest to easily view test results
- Use `yaml` syntax highlighting for `.suml` files - Use `yaml` syntax highlighting for `.suml` files
### Tools ### Tools