Skip to content

Commit

Permalink
chore: Update @smartive/tslint-config to the latest version 馃殌 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and buehler committed Jul 5, 2018
1 parent 8cb3abd commit e6e74dd
Show file tree
Hide file tree
Showing 41 changed files with 107 additions and 109 deletions.
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ language: node_js
stages:
- name: test
if: tag IS blank
- name: build
if: tag IS blank
- name: deploy
if: branch = master AND type != pull_request

cache:
directories:
- node_modules

matrix:
fast_finish: true

Expand All @@ -19,16 +25,10 @@ jobs:
after_success:
- npm i -g codecov
- codecov
- stage: test
node_js: '9'
after_success:
- npm i -g codecov
- codecov
- stage: test
node_js: '8'
after_success:
- npm i -g codecov
- codecov
- stage: build
node_js: '10'
script:
- npm run build
- stage: deploy
node_js: '10'
script: npm run typedoc
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
},
"homepage": "https://github.com/TypeScript-Heroes/node-typescript-parser#readme",
"devDependencies": {
"@smartive/tslint-config": "^3.0.1",
"@types/jest": "^23.1.2",
"@smartive/tslint-config": "^4.0.0",
"@types/jest": "^23.1.4",
"@types/lodash-es": "^4.17.0",
"@types/mock-fs": "^3.6.30",
"@types/node": "^10.3.6",
"@types/node": "^10.5.1",
"del-cli": "^1.1.0",
"jest": "^23.2.0",
"jest": "^23.3.0",
"mock-fs": "^4.5.0",
"semantic-release": "^15.6.0",
"semantic-release": "^15.6.3",
"ts-jest": "^23.0.0",
"tslint": "^5.10.0",
"tsutils": "^2.27.1",
"tsutils": "^2.27.2",
"typedoc": "^0.11.1"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/Node.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/**
* Base class for all nodes / declarations / imports / etc. in the extension.
* Contains basic information about the node.
*
*
* @export
* @interface Node
*/
export interface Node {
/**
* The starting character of the node in the document.
*
*
* @type {number}
* @memberof Node
*/
start?: number;

/**
* The ending character of the node in the document.
*
*
* @type {number}
* @memberof Node
*/
Expand Down
6 changes: 3 additions & 3 deletions src/SymbolSpecifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Clonable } from './clonable/Clonable';
/**
* Class for symbols that are contained in a named import or export or anywhere. Basically an aliased object.
* (i.e. import {SYMBOL} from '...').
*
*
* @export
* @class SymbolSpecifier
* @implements {Clonable}
Expand All @@ -13,9 +13,9 @@ export class SymbolSpecifier implements Clonable<SymbolSpecifier> {

/**
* Clones the current resolve specifier and returns a new instance with the same properties.
*
*
* @returns {SymbolSpecifier}
*
*
* @memberof SymbolSpecifier
*/
public clone(): SymbolSpecifier {
Expand Down
1 change: 0 additions & 1 deletion src/TypescriptParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export class TypescriptParser {
return file;
}


/**
* Recursive function that runs through the AST of a source and parses the nodes.
* Creates the class / function / etc declarations and instanciates a new module / namespace
Expand Down
6 changes: 3 additions & 3 deletions src/clonable/Clonable.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* Interface for clonable objects. The clone() method creates a deep clone of the object.
*
*
* @export
* @template T
* @interface Clonable
*/
export interface Clonable<T> {
/**
* Create a deep clone of this object.
*
*
* @returns {T}
*
*
* @memberof Clonable
*/
clone(): T;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { TypescriptGenerationOptions } from '../TypescriptGenerationOptions';

/**
* Generates typescript code for an external module import.
*
*
* @export
* @param {ExternalModuleImport} imp
* @param {TypescriptGenerationOptions} { stringQuoteStyle, eol }
* @returns {string}
* @param {ExternalModuleImport} imp
* @param {TypescriptGenerationOptions} { stringQuoteStyle, eol }
* @returns {string}
*/
export function generateExternalModuleImport(
imp: ExternalModuleImport,
Expand Down
8 changes: 4 additions & 4 deletions src/code-generators/typescript-generators/namespaceImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { TypescriptGenerationOptions } from '../TypescriptGenerationOptions';

/**
* Generates typescript code for a namespace import
*
*
* @export
* @param {NamespaceImport} imp
* @param {TypescriptGenerationOptions} { stringQuoteStyle, eol }
* @returns {string}
* @param {NamespaceImport} imp
* @param {TypescriptGenerationOptions} { stringQuoteStyle, eol }
* @returns {string}
*/
export function generateNamespaceImport(
imp: NamespaceImport,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { ParameterDeclaration } from '../../declarations/ParameterDeclaration';

/**
* Generates typescript code for parameters.
*
*
* @export
* @param {ParameterDeclaration} parameter
* @returns {string}
* @param {ParameterDeclaration} parameter
* @returns {string}
*/
export function generateParameterDeclaration(parameter: ParameterDeclaration): string {
return `${parameter.name}${parameter.type ? `: ${parameter.type}` : ''}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { TypescriptGenerationOptions } from '../TypescriptGenerationOptions';

/**
* Generates typescript code for a class property.
*
*
* @export
* @param {PropertyDeclaration} property
* @param {TypescriptGenerationOptions} { tabSize }
* @returns {string}
* @param {PropertyDeclaration} property
* @param {TypescriptGenerationOptions} { tabSize }
* @returns {string}
*/
export function generatePropertyDeclaration(
property: PropertyDeclaration,
Expand Down
8 changes: 4 additions & 4 deletions src/code-generators/typescript-generators/stringImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { TypescriptGenerationOptions } from '../TypescriptGenerationOptions';

/**
* Generates typescript code for a string import.
*
*
* @export
* @param {StringImport} imp
* @param {TypescriptGenerationOptions} { stringQuoteStyle, eol }
* @returns {string}
* @param {StringImport} imp
* @param {TypescriptGenerationOptions} { stringQuoteStyle, eol }
* @returns {string}
*/
export function generateStringImport(imp: StringImport, { stringQuoteStyle, eol }: TypescriptGenerationOptions): string {
return `import ${stringQuoteStyle}${imp.libraryName}${stringQuoteStyle}${eol}`;
Expand Down
6 changes: 3 additions & 3 deletions src/code-generators/typescript-generators/symbolSpecifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { SymbolSpecifier } from '../../SymbolSpecifier';

/**
* Generates typescript code for a symbol specifier.
*
*
* @export
* @param {SymbolSpecifier} specifier
* @returns {string}
* @param {SymbolSpecifier} specifier
* @returns {string}
*/
export function generateSymbolSpecifier(specifier: SymbolSpecifier): string {
return `${specifier.specifier}${specifier.alias ? ` as ${specifier.alias}` : ''}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { VariableDeclaration } from '../../declarations/VariableDeclaration';

/**
* Generates typescript code for a variable.
*
*
* @export
* @param {VariableDelcaration} variable
* @returns {string}
* @param {VariableDelcaration} variable
* @returns {string}
*/
export function generateVariableDelcaration(variable: VariableDeclaration): string {
return `${variable.name}${variable.type ? `: ${variable.type}` : ''}`;
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/ConstructorDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { VariableDeclaration } from './VariableDeclaration';

/**
* Constructor declaration that is contained in a class.
*
*
* @export
* @class ConstructorDeclaration
* @implements {CallableDeclaration}
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/DeclarationInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Declaration } from './Declaration';
/**
* Class that defines information about a declaration.
* Contains the declaration and the origin of the declaration.
*
*
* @export
* @class DeclarationInfo
*/
Expand Down
4 changes: 2 additions & 2 deletions src/declarations/DeclarationVisibility.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Returns the visibility string for a given enum value.
*
*
* @param {DeclarationVisibility} [visibility]
* @returns {string}
*/
Expand All @@ -19,7 +19,7 @@ export function getVisibilityText(visibility?: DeclarationVisibility): string {

/**
* Visibility of a class or interface property, as well as a method.
*
*
* @export
* @enum {number}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/EnumDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ExportableDeclaration } from './Declaration';

/**
* Enum declaration.
*
*
* @export
* @class EnumDeclaration
* @implements {ExportableDeclaration}
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/FunctionDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { VariableDeclaration } from './VariableDeclaration';
/**
* Function declaration. Like the MethodDeclaration it contains the base info about the function
* and additional stuff.
*
*
* @export
* @class FunctionDeclaration
* @implements {CallableDeclaration}
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/MethodDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { VariableDeclaration } from './VariableDeclaration';
/**
* Method declaration. A method is contained in an interface or a class.
* Contains information abount the method itself.
*
*
* @export
* @class MethodDeclaration
* @implements {CallableDeclaration}
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/ModuleDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Declaration } from './Declaration';
/**
* Module (namespace) declaration. Does export a whole module or namespace that is mainly used by
* external declaration files.
*
*
* @export
* @class ModuleDeclaration
* @implements {Declaration}
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/ParameterDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TypedDeclaration } from './Declaration';
/**
* Parameter declaration. Is contained in a method or function delaration since a parameter can not be exported
* by itself.
*
*
* @export
* @class ParameterDeclaration
* @implements {TypedDeclaration}
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/TypeAliasDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ExportableDeclaration } from './Declaration';
/**
* Alias declaration that can be exported. Is used to defined types.
* (e.g. type Foobar = { name: string };)
*
*
* @export
* @class TypeAliasDeclaration
* @implements {ExportableDeclaration}
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/VariableDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ExportableDeclaration, TypedDeclaration } from './Declaration';

/**
* Variable declaration. Is contained in a method or function, or can be exported.
*
*
* @export
* @class VariableDeclaration
* @implements {ExportableDeclaration}
Expand Down
2 changes: 1 addition & 1 deletion src/errors/NotGeneratableYetError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Generatable } from '../code-generators/TypescriptCodeGenerator';

/**
* Error that should be thrown, when a generatable is not yet able to be generated.
*
*
* @export
* @class NotGeneratableYetError
* @extends {Error}
Expand Down
2 changes: 1 addition & 1 deletion src/exports/AllExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Export } from './Export';

/**
* Declares an all export (i.e. export * from ...).
*
*
* @export
* @class AllExport
* @implements {Export}
Expand Down
4 changes: 2 additions & 2 deletions src/exports/AssignedExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Export } from './Export';

/**
* Declares an all export (i.e. export * from ...).
*
*
* @export
* @class AssignedExport
* @implements {Export}
Expand All @@ -16,7 +16,7 @@ export class AssignedExport implements Export {
/**
* Returns a list of exported objects of this export.
* This returns a list of possible exportable declarations or further exported resources.
*
*
* @readonly
* @type {((ExportableDeclaration | Resource)[])}
* @memberof AssignedExport
Expand Down
2 changes: 1 addition & 1 deletion src/exports/Export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Node } from '../Node';

/**
* Basic export interface. Defines an export in a document.
*
*
* @export
* @interface Export
* @extends {Node}
Expand Down
Loading

0 comments on commit e6e74dd

Please sign in to comment.