Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikPieper committed Dec 19, 2024
1 parent 0ac35f9 commit eb34f08
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion code/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {
},
{
// this package depends on a lot of peerDependencies we don't want to specify, because npm would install them
files: ['**/frameworks/angular/template/**/*'],
files: ['**/frameworks/angular/template/**/*', '**/renderers/angular-renderer/template/**/*'],
rules: {
'@typescript-eslint/no-useless-constructor': 'off',
'@typescript-eslint/dot-notation': 'off',
Expand Down
2 changes: 1 addition & 1 deletion code/presets/angular-webpack/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PresetProperty } from 'storybook/internal/types';
import { PresetProperty } from 'storybook/internal/types';

export * from './types';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { hasDocsOrControls } from 'storybook/internal/docs-tools';
import type { PresetProperty } from 'storybook/internal/types';
import { PresetProperty } from 'storybook/internal/types';

export const previewAnnotations: PresetProperty<'previewAnnotations'> = (entry = [], options) => {
if (!hasDocsOrControls(options)) {
Expand Down
4 changes: 3 additions & 1 deletion code/renderers/angular-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"@storybook/manager-api": "workspace:*",
"@storybook/preview-api": "workspace:*",
"@storybook/react-dom-shim": "workspace:*",
"@storybook/theming": "workspace:*"
"@storybook/theming": "workspace:*",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@angular-devkit/architect": "^0.1703.0",
Expand All @@ -94,6 +95,7 @@
"@types/cross-spawn": "^6.0.2",
"@types/tmp": "^0.2.3",
"cross-spawn": "^7.0.3",
"telejson": "^7.2.0",
"tmp": "^0.2.1",
"typescript": "^5.3.2",
"webpack": "5",
Expand Down
6 changes: 3 additions & 3 deletions code/renderers/angular-renderer/src/client/public-types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable prettier/prettier */
/* eslint-disable @typescript-eslint/ban-ts-comment */
import type {
import {
AnnotatedStoryFn,
Args,
ComponentAnnotations,
Expand All @@ -11,8 +11,8 @@ import type {
StrictArgs,
ProjectAnnotations,
} from 'storybook/internal/types';
import type * as AngularCore from '@angular/core';
import type { AngularRenderer } from './types';
import * as AngularCore from '@angular/core';
import { AngularRenderer } from './types';

export type { Args, ArgTypes, Parameters, StrictArgs } from 'storybook/internal/types';
export type { AngularRenderer };
Expand Down
4 changes: 2 additions & 2 deletions code/renderers/angular-renderer/src/client/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type {
import {
Parameters as DefaultParameters,
StoryContext as DefaultStoryContext,
WebRenderer,
} from 'storybook/internal/types';

import type { ApplicationConfig, Provider } from '@angular/core';
import { ApplicationConfig, Provider } from '@angular/core';

export interface NgModuleMetadata {
/** List of components, directives, and pipes that belong to your component. */
Expand Down
4 changes: 2 additions & 2 deletions code/renderers/angular-renderer/src/preset.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PresetProperty } from 'storybook/internal/types';
import { PresetProperty } from 'storybook/internal/types';

import type { StandaloneOptions } from './builders/utils/standalone-options';
import { StandaloneOptions } from './builders/utils/standalone-options';

export const previewAnnotations: PresetProperty<'previewAnnotations'> = (entries = [], options) => {
const annotations = [...entries, require.resolve('@storybook/angular-renderer/client/config')];
Expand Down
8 changes: 7 additions & 1 deletion scripts/prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export default {
options: { parser: 'angular' },
},
{
files: ['**/frameworks/angular/src/**/*.ts', '**/frameworks/angular/template/**/*.ts'],
files: [
'**/frameworks/angular/src/**/*.ts',
'**/frameworks/angular/template/**/*.ts',
'**/presets/angular-webpack/src/**/*.ts',
'**/renderers/angular-renderer/src/**/*.ts',
'**/renderers/angular-renderer/template/**/*.ts',
],
options: { parser: 'babel-ts' },
},
{
Expand Down

0 comments on commit eb34f08

Please sign in to comment.