You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/rules/no-uninstalled-addons.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ export = createStorybookRule({
39
39
description:
40
40
'This rule identifies storybook addons that are invalid because they are either not installed or contain a typo in their name.',
41
41
categories: [CategoryId.RECOMMENDED],
42
-
recommended: 'error',// or 'error'
42
+
recommended: 'strict',
43
43
},
44
44
messages: {
45
45
addonIsNotInstalled: `The {{ addonName }} is not installed in {{packageJsonPath}}. Did you forget to install it or is your package.json in a different location?`,
// @ts-expect-error TODO: when we will upgrade `@typescript-eslint/utils` v7.x from v5.x on this package, we should resolve type definion with latest version.
59
-
// In `@typescript-eslint/utils` v5.x, cannot resolve of `sourceCode`, because type definition is not still provide from that version.
60
57
const{ sourceCode }=context
61
58
62
59
// Compatibility implementation for eslint v8.x and v9.x or later
63
60
// see https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/#context.getscope()
61
+
// @ts-expect-error keep it for compatibility with eslint v8.x
// @ts-expect-error TODO: when we will upgrade `@typescript-eslint/utils` v7.x from v5.x on this package, we should resolve type definion with latest version.
26
-
// In `@typescript-eslint/utils` v5.x, cannot resolve of `sourceCode`, because type definition is not still provide from that version.
27
25
const{ sourceCode }=context
28
26
if(isIdentifier(meta)){
29
27
// Compatibility implementation for eslint v8.x and v9.x or later
0 commit comments