Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: move ts-dedent to dependencies #104

Merged
merged 2 commits into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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