-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2682 from storybooks/ts-lint-all
Add tslint to the linting pipe
- Loading branch information
Showing
40 changed files
with
333 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
declare module '@storybook/angular/demo' { | ||
export const Button: any; | ||
export const Welcome: any; | ||
} | ||
export const Button: any; | ||
export const Welcome: any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import {NgModuleMetadata, ICollection} from './dist/client/preview/angular/types'; | ||
import { NgModuleMetadata, ICollection } from './dist/client/preview/angular/types'; | ||
|
||
export interface IStorybookStory { | ||
name: string, | ||
render: () => any | ||
name: string; | ||
render: () => any; | ||
} | ||
|
||
export interface IStoribookSection { | ||
kind: string, | ||
stories: IStorybookStory[] | ||
kind: string; | ||
stories: IStorybookStory[]; | ||
} | ||
|
||
export type IGetStory = () => { | ||
props?: ICollection; | ||
moduleMetadata?: Partial<NgModuleMetadata>; | ||
component: any | ||
props?: ICollection; | ||
moduleMetadata?: Partial<NgModuleMetadata>; | ||
component: any; | ||
}; | ||
|
||
export interface IApi { | ||
kind: string; | ||
addDecorator: (decorator: any) => IApi; | ||
add: (storyName: string, getStory: IGetStory ) => IApi; | ||
kind: string; | ||
addDecorator: (decorator: any) => IApi; | ||
add: (storyName: string, getStory: IGetStory) => IApi; | ||
} | ||
|
||
declare module '@storybook/angular' { | ||
export function storiesOf(kind: string, module: NodeModule): IApi; | ||
export function setAddon(addon: any): void; | ||
export function addDecorator(decorator: any): IApi; | ||
export function configure(loaders: () => NodeRequire, module: NodeModule): void; | ||
export function getStorybook(): IStoribookSection[]; | ||
export function storiesOf(kind: string, module: NodeModule): IApi; | ||
export function setAddon(addon: any): void; | ||
export function addDecorator(decorator: any): IApi; | ||
export function configure(loaders: () => NodeRequire, module: NodeModule): void; | ||
export function getStorybook(): IStoribookSection[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { InjectionToken } from "@angular/core"; | ||
import { NgStory } from "./types"; | ||
import { InjectionToken } from '@angular/core'; | ||
import { NgStory } from './types'; | ||
|
||
export const STORY = new InjectionToken<NgStory>("story"); | ||
export const STORY = new InjectionToken<NgStory>('story'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/angular/src/client/preview/angular/components/no-preview.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { Component } from "@angular/core"; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'storybook-dynamic-app-root', | ||
template: "<p>No Preview Available!</p>" | ||
template: '<p>No Preview Available!</p>', | ||
}) | ||
export class NoPreviewComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.