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

린팅 설정 오류 #20

Closed
DaleSeo opened this issue Oct 19, 2024 · 0 comments · Fixed by #26
Closed

린팅 설정 오류 #20

DaleSeo opened this issue Oct 19, 2024 · 0 comments · Fixed by #26
Assignees
Labels
bug Something isn't working

Comments

@DaleSeo
Copy link
Contributor

DaleSeo commented Oct 19, 2024

main 브랜치에서 린터를 실행하면 다음과 같은 오류가 발생함

> bun run lint
$ eslint .

Oops! Something went wrong! :(

ESLint: 9.13.0

Configuration for rule "await-interactions" is invalid. Each rule must have a severity ("off", 0, "warn", 1, "error", or 2) and may be followed by additional options for the rule.

You passed '{
        "defaultOptions": [],
        "meta": {
            "docs": {
                "description": "Interactions should be awaited",
                "categories": [
                    "addon-interactions",
                    "recommended"
                ],
                "recommended": "error",
                "url": "https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/await-interactions.md"
            },
            "messages": {
                "interactionShouldBeAwaited": "Interaction should be awaited: {{method}}",
                "fixSuggestion": "Add `await` to method"
            },
            "type": "problem",
            "fixable": "code",
            "hasSuggestions": true,
            "schema": []
        }
    }', which doesn't contain a valid severity.

If you're attempting to configure rule options, perhaps you meant:

    "await-interactions": ["error", {
            "defaultOptions": [],
            "meta": {
                "docs": {
                    "description": "Interactions should be awaited",
                    "categories": [
                        "addon-interactions",
                        "recommended"
                    ],
                    "recommended": "error",
                    "url": "https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/await-interactions.md"
                },
                "messages": {
                    "interactionShouldBeAwaited": "Interaction should be awaited: {{method}}",
                    "fixSuggestion": "Add `await` to method"
                },
                "type": "problem",
                "fixable": "code",
                "hasSuggestions": true,
                "schema": []
            }
        }]

See https://eslint.org/docs/latest/use/configure/rules#using-configuration-files for configuring rules.
@DaleSeo DaleSeo converted this from a draft issue Oct 19, 2024
@DaleSeo DaleSeo added the bug Something isn't working label Oct 19, 2024
@sounmind sounmind self-assigned this Oct 19, 2024
@DaleSeo DaleSeo moved this to Todo in 리더보드 Oct 20, 2024
@sounmind sounmind linked a pull request Oct 20, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In Progress to Done in 리더보드 Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants