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

The default configuration is not working #3

Open
gamegee opened this issue Jun 9, 2021 · 2 comments
Open

The default configuration is not working #3

gamegee opened this issue Jun 9, 2021 · 2 comments

Comments

@gamegee
Copy link

gamegee commented Jun 9, 2021

Hi,

I tried using eslint-plugin-destructure-depth with the example from the docs:

"rules": {
 "destructure-depth/max-depth": [
    "warn", {
      "object": {
        "max": 1
      }
    }
  ],
}

But it is not working, I have the following error when I try to run the linter:

Error: .eslintrc.json:
	Configuration for rule "destructure-depth/max-depth" is invalid:
	Value {"object":{"max":1}} should NOT have additional properties.
	Value {"max":1} should be boolean.
	Value {"object":{"max":1}} should match exactly one schema in oneOf.
@gamegee
Copy link
Author

gamegee commented Jun 9, 2021

Hi, thx for your answer but still have an error 🧐

"rules": {
  "destructure-depth/max-depth": [
    "error", { "max": 1 }
  ],
}

error:

Error: .eslintrc.json:
	Configuration for rule "destructure-depth/max-depth" is invalid:
	Value {"max":1} should NOT have additional properties.
	Value {"max":1} should NOT have additional properties.
	Value {"max":1} should match exactly one schema in oneOf.

@isaquediasm
Copy link
Owner

@gamegee Hi Simon. I can't reproduce your issue in my local env... could you share more details of your env, such as Node and Eslint version? Thanks!

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

No branches or pull requests

2 participants