Skip to content

Commit

Permalink
add code:fix and code:check run configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Jul 25, 2024
1 parent 767faa2 commit d6f4b31
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .run/code_check.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="code:check" type="CompoundRunConfigurationType">
<toRun name="format:check" type="js.build_tools.npm" />
<toRun name="lint:check" type="js.build_tools.npm" />
<toRun name="mdlint:check" type="js.build_tools.npm" />
<method v="2" />
</configuration>
</component>
8 changes: 8 additions & 0 deletions .run/code_fix.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="code:fix" type="CompoundRunConfigurationType">
<toRun name="format:fix" type="js.build_tools.npm" />
<toRun name="lint:fix" type="js.build_tools.npm" />
<toRun name="mdlint:fix" type="js.build_tools.npm" />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/format_check.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="format:check" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="format:check" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/format_fix.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="format:fix" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="format:fix" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/lint_check.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="lint:check" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="lint:check" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
4 changes: 2 additions & 2 deletions .run/format.run.xml → .run/lint_fix.run.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="format" type="js.build_tools.npm" nameIsGenerated="true">
<configuration default="false" name="lint:fix" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="format" />
<script value="lint:fix" />
</scripts>
<node-interpreter value="project" />
<envs />
Expand Down
4 changes: 2 additions & 2 deletions .run/lint.run.xml → .run/mdlint_check.run.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="lint" type="js.build_tools.npm" nameIsGenerated="true">
<configuration default="false" name="mdlint:check" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="lint" />
<script value="mdlint:check" />
</scripts>
<node-interpreter value="project" />
<envs />
Expand Down
12 changes: 12 additions & 0 deletions .run/mdlint_fix.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="mdlint:fix" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="mdlint:fix" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>

0 comments on commit d6f4b31

Please sign in to comment.