Skip to content

Commit aa46236

Browse files
[pre-req] Move .storybook to storybook; standardize files
1 parent 105e3a6 commit aa46236

File tree

43 files changed

+135
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+135
-49
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ target
3333
/x-pack/plugins/canvas/canvas_plugin
3434
/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts
3535
/x-pack/plugins/canvas/shareable_runtime/build
36-
/x-pack/plugins/canvas/storybook
36+
/x-pack/plugins/canvas/storybook/build
3737
/x-pack/plugins/monitoring/public/lib/jquery_flot
3838
/x-pack/plugins/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/**
3939
/x-pack/legacy/plugins/infra/common/graphql/types.ts

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,12 @@ module.exports = {
12221222
],
12231223
},
12241224
},
1225+
{
1226+
files: ['x-pack/plugins/canvas/storybook/**'],
1227+
rules: {
1228+
'import/no-extraneous-dependencies': 0,
1229+
},
1230+
},
12251231
{
12261232
files: ['x-pack/plugins/canvas/canvas_plugin_src/**/*.js'],
12271233
globals: { canvas: true, $: true },

src/dev/precommit_hook/casing_check_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const IGNORE_FILE_GLOBS = [
5151
'.ci/pipeline-library/**/*',
5252

5353
// Files in this directory must match a pre-determined name in some cases.
54-
'x-pack/plugins/canvas/.storybook/*',
54+
'x-pack/plugins/canvas/storybook/*',
5555

5656
// filename must match language code which requires capital letters
5757
'**/translations/*.json',

x-pack/plugins/canvas/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ canvas_plugin/*
5757
webpack_stats.json
5858

5959
# Don't commit storybook builds
60-
storybook
60+
storybook/build

x-pack/plugins/canvas/public/components/color_picker/__examples__/color_picker.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { action } from '@storybook/addon-actions';
8-
import { boolean, withKnobs } from '@storybook/addon-knobs';
8+
import { boolean } from '@storybook/addon-knobs';
99
import { storiesOf } from '@storybook/react';
1010
import React from 'react';
1111
import { ColorPicker } from '../color_picker';
@@ -54,7 +54,6 @@ class Interactive extends React.Component<
5454
}
5555

5656
storiesOf('components/Color/ColorPicker', module)
57-
.addDecorator(withKnobs)
5857
.addParameters({
5958
info: {
6059
inline: true,

0 commit comments

Comments
 (0)