Skip to content

Commit

Permalink
Merge pull request #104 from storybookjs/fix/fix-dependencies
Browse files Browse the repository at this point in the history
deps: move ts-dedent to dependencies
  • Loading branch information
yannbf authored Aug 3, 2022
2 parents f104396 + 2956130 commit 0ce90b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"dependencies": {
"@storybook/csf": "^0.0.1",
"@typescript-eslint/experimental-utils": "^5.3.0",
"requireindex": "^1.1.0"
"requireindex": "^1.1.0",
"ts-dedent": "^2.2.0"
},
"devDependencies": {
"@auto-it/released": "^10.32.2",
Expand All @@ -68,7 +69,6 @@
"prettier": "^2.4.0",
"prompts": "^2.4.2",
"rimraf": "^3.0.2",
"ts-dedent": "^2.2.0",
"ts-jest": "^27.0.7",
"ts-migrate": "^0.1.26",
"ts-node": "^10.4.0",
Expand Down
10 changes: 10 additions & 0 deletions tests/lib/rules/no-uninstalled-addons.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ ruleTester.run('no-uninstalled-addons', rule, {
type: AST_NODE_TYPES.Literal,
data: {
addonName: '@storybook/not-installed-addon',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
],
Expand All @@ -156,6 +157,7 @@ ruleTester.run('no-uninstalled-addons', rule, {
type: AST_NODE_TYPES.Literal,
data: {
addonName: '@storybook/not-installed-addon',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
],
Expand All @@ -178,6 +180,7 @@ ruleTester.run('no-uninstalled-addons', rule, {
type: AST_NODE_TYPES.Literal,
data: {
addonName: '@storybook/addon-esentials',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
],
Expand All @@ -198,6 +201,7 @@ ruleTester.run('no-uninstalled-addons', rule, {
type: AST_NODE_TYPES.Literal,
data: {
addonName: '@storybook/adon-essentials',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
],
Expand All @@ -220,13 +224,15 @@ ruleTester.run('no-uninstalled-addons', rule, {
type: AST_NODE_TYPES.Literal,
data: {
addonName: 'addon-withut-the-prefix',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
{
messageId: 'addonIsNotInstalled', // comes from the rule file
type: AST_NODE_TYPES.Literal,
data: {
addonName: '@storybook/addon-esentials',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
],
Expand All @@ -249,13 +255,15 @@ ruleTester.run('no-uninstalled-addons', rule, {
type: AST_NODE_TYPES.Literal,
data: {
addonName: 'addon-withut-the-prefix',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
{
messageId: 'addonIsNotInstalled', // comes from the rule file
type: AST_NODE_TYPES.Literal,
data: {
addonName: '@storybook/addon-esentials',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
],
Expand All @@ -277,13 +285,15 @@ ruleTester.run('no-uninstalled-addons', rule, {
type: AST_NODE_TYPES.Literal,
data: {
addonName: 'addon-withut-the-prefix',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
{
messageId: 'addonIsNotInstalled', // comes from the rule file
type: AST_NODE_TYPES.Literal,
data: {
addonName: '@storybook/addon-esentials',
packageJsonPath: 'eslint-plugin-storybook/',
},
},
],
Expand Down

0 comments on commit 0ce90b1

Please sign in to comment.