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

Fix flat config instructions #141

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Fix flat config instructions #141

merged 1 commit into from
Oct 31, 2024

Conversation

mantoni
Copy link
Contributor

@mantoni mantoni commented Oct 30, 2024

The config instructions for ESLint flat configuration didn't work for me. I received this error message:

Oops! Something went wrong! :(                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                    
ESLint: 9.12.0                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                    
A config object has a "plugins" key defined as an array of strings.                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                                    
Flat config requires "plugins" to be an object in this form:                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                    
    {                                                                                                                                                                                                                                                                               
        plugins: {                                                                                                                                                                                                                                                                  
            wc: pluginObject                                                                                                                                                                                                                                                        
        }                                                                                                                                                                                                                                                                           
    }                                                                                                                                                                                                                                                                               

With this change everything works fine.

Copy link
Owner

@43081j 43081j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. It is a typo, my mistake!

@43081j 43081j merged commit 25f62cc into 43081j:master Oct 31, 2024
3 checks passed
@mantoni mantoni deleted the patch-1 branch October 31, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants