Update PhpStorm configuration
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
336619723e
commit
b0699f76ae
4 changed files with 3 additions and 96 deletions
|
@ -1,25 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) ${YEAR}, whatwedo GmbH
|
|
||||||
* All rights reserved
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
||||||
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
||||||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
|
@ -1,5 +1,6 @@
|
||||||
<application>
|
<application>
|
||||||
<component name="BaseRefactoringSettings">
|
<component name="BaseRefactoringSettings">
|
||||||
|
<option name="SAFE_DELETE_WHEN_DELETE" value="false" />
|
||||||
<option name="RENAME_SEARCH_IN_COMMENTS_FOR_FILE" value="false" />
|
<option name="RENAME_SEARCH_IN_COMMENTS_FOR_FILE" value="false" />
|
||||||
<option name="RENAME_SEARCH_FOR_REFERENCES_FOR_FILE" value="false" />
|
<option name="RENAME_SEARCH_FOR_REFERENCES_FOR_FILE" value="false" />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
<extensionMap>
|
<extensionMap>
|
||||||
<mapping pattern="*.js.flow" type="Flow" />
|
<mapping pattern="*.js.flow" type="Flow" />
|
||||||
<mapping pattern="*.js.flow" type="Flow" />
|
<mapping pattern="*.js.flow" type="Flow" />
|
||||||
|
<mapping pattern=".env" type="PLAIN_TEXT" />
|
||||||
|
<mapping pattern=".env.example" type="PLAIN_TEXT" />
|
||||||
<removed_mapping ext="cmd" approved="true" type="PLAIN_TEXT" />
|
<removed_mapping ext="cmd" approved="true" type="PLAIN_TEXT" />
|
||||||
<removed_mapping ext="log" approved="true" type="PLAIN_TEXT" />
|
<removed_mapping ext="log" approved="true" type="PLAIN_TEXT" />
|
||||||
<removed_mapping ext="bat" approved="true" type="PLAIN_TEXT" />
|
<removed_mapping ext="bat" approved="true" type="PLAIN_TEXT" />
|
||||||
|
|
|
@ -1,79 +1,8 @@
|
||||||
<templateSet group="JavaScript">
|
<templateSet group="JavaScript">
|
||||||
<template name="fori" value="for($VARKIND$ $INDEX$ = 0; $INDEX$ < $LIMIT$; $INDEX$++) { $END$ }" description="Create iteration loop" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="VARKIND" expression="jsSuggestDefaultVariableKind(false)" defaultValue="var" alwaysStopAt="false" />
|
|
||||||
<variable name="INDEX" expression="jsSuggestIndexName()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<variable name="LIMIT" expression="" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="iter" value="for ($VARKIND$ $VAR$ of $ARRAY$) { $END$ }" description="Iterate (for..of) - ES2015" toReformat="true" toShortenFQNames="true">
|
<template name="iter" value="for ($VARKIND$ $VAR$ of $ARRAY$) { $END$ }" description="Iterate (for..of) - ES2015" toReformat="true" toShortenFQNames="true">
|
||||||
<variable name="VARKIND" expression="jsSuggestDefaultVariableKind()" defaultValue="var" alwaysStopAt="false" />
|
<variable name="VARKIND" expression="jsSuggestDefaultVariableKind()" defaultValue="var" alwaysStopAt="false" />
|
||||||
<variable name="ARRAY" expression="jsArrayVariable()" defaultValue=""array "" alwaysStopAt="false" />
|
<variable name="ARRAY" expression="jsArrayVariable()" defaultValue=""array "" alwaysStopAt="false" />
|
||||||
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue=""o"" alwaysStopAt="true" />
|
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue=""o"" alwaysStopAt="true" />
|
||||||
<context />
|
<context />
|
||||||
</template>
|
</template>
|
||||||
<template name="itin" value="for ($VARKIND$ $VAR$ in $ARRAY$) { $END$ }" description="Iterate (for..in)" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="VARKIND" expression="jsSuggestDefaultVariableKind()" defaultValue="var" alwaysStopAt="false" />
|
|
||||||
<variable name="ARRAY" expression="jsArrayVariable()" defaultValue=""array "" alwaysStopAt="true" />
|
|
||||||
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue=""o"" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="itar" value="for ($VARKIND$ $INDEX$ = 0; $INDEX$ < $ARRAY$.length; $INDEX$++) { $VARKIND2$ $VAR$ = $ARRAY$[$INDEX$]; $END$ }" description="Iterate elements of array" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="VARKIND" expression="jsSuggestDefaultVariableKind(false)" defaultValue="var" alwaysStopAt="false" />
|
|
||||||
<variable name="INDEX" expression="jsSuggestIndexName()" defaultValue=""i"" alwaysStopAt="true" />
|
|
||||||
<variable name="ARRAY" expression="jsArrayVariable()" defaultValue=""array"" alwaysStopAt="true" />
|
|
||||||
<variable name="VARKIND2" expression="jsSuggestDefaultVariableKind()" defaultValue="var" alwaysStopAt="false" />
|
|
||||||
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue=""o"" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="ritar" value="for ($VARKIND$ $INDEX$ = $ARRAY$.length - 1; $INDEX$ >= 0; $INDEX$--) { $VARKIND2$ $VAR$ = $ARRAY$[$INDEX$]; $END$ }" description="Iterate elements of array in reverse order" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="VARKIND" expression="jsSuggestDefaultVariableKind(false)" defaultValue="var" alwaysStopAt="false" />
|
|
||||||
<variable name="INDEX" expression="jsSuggestIndexName()" defaultValue=""i"" alwaysStopAt="true" />
|
|
||||||
<variable name="ARRAY" expression="jsArrayVariable()" defaultValue=""array"" alwaysStopAt="true" />
|
|
||||||
<variable name="VARKIND2" expression="jsSuggestDefaultVariableKind()" defaultValue="var" alwaysStopAt="false" />
|
|
||||||
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue=""o"" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="importitems" value="import {$ITEM$$END$} from "$MODULE$"; " description="Import statement - import {b} from 'a'" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="MODULE" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<variable name="ITEM" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="importns" value="import * as $ITEM$ from "$MODULE$"; $END$" description="Import statement - import * as b from 'a'" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="MODULE" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<variable name="ITEM" expression="jsSuggestImportedEntityName()" defaultValue="Namespace" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="importdefault" value="import $ITEM$ from "$MODULE$"; $END$" description="Import statement - import b from 'a'" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="MODULE" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<variable name="ITEM" expression="jsSuggestImportedEntityName()" defaultValue="Namespace" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="exportall" value="export * from "$MODULE$"; $END$" description="Export statement - export * from 'a'" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="MODULE" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="exportfrom" value="export {$ITEM$$END$} from "$MODULE$"; " description="Export statement - export {b} from 'a'" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="MODULE" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<variable name="ITEM" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="exportitems" value="export {$ITEM$$END$}; " description="Export statement - export {b}" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="ITEM" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="us" value=""use strict"; $END$" description="Inserts 'use strict' statement" toReformat="true" toShortenFQNames="true">
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="ref" value="///<reference path="$PATH$"/> $END$" description="Inserts reference path comment" toReformat="true" toShortenFQNames="false">
|
|
||||||
<variable name="PATH" expression="complete()" defaultValue="""" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="defn" value="define(["$MODULE_REF$"], function($MODULE_VAR$) { $END$ });" description="Inserts define() expression" toReformat="true" toShortenFQNames="true">
|
|
||||||
<variable name="MODULE_REF" expression="complete()" defaultValue="""" alwaysStopAt="true" />
|
|
||||||
<variable name="MODULE_VAR" expression="jsDefineParameter(MODULE_REF)" defaultValue="mod" alwaysStopAt="true" />
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
<template name="flow" value="// @flow" description="Inserts @flow annotation" toReformat="true" toShortenFQNames="true">
|
|
||||||
<context />
|
|
||||||
</template>
|
|
||||||
</templateSet>
|
</templateSet>
|
Loading…
Add table
Add a link
Reference in a new issue