ITADN

`switch-exhaustiveness-check` config mismatch?

#83Closedfregante 创建于 2024-02-24
F
fregantecommented
``` Error: .eslintrc.js » eslint-config-pixiebrix » eslint-config-xo-typescript: Configuration for rule "@typescript-eslint/switch-exhaustiveness-check" is invalid: Value [{"allowDefaultCaseForExhaustiveSwitch":false,"requireDefaultForNonUnion":true}] should NOT have more than 0 items. ``` I have the latest dependencies in `eslint-config-pixiebrix` and I'm seeing this issue, but I don't understand why. The peer deps are not being resolved correctly according to npm: ``` ❯ npm ls @typescript-eslint/eslint-plugin npm ERR! code ELSPROBLEMS ├─┬ @shopify/eslint-plugin@44.0.0 │ ├── @typescript-eslint/eslint-plugin@6.10.0 │ └─┬ eslint-plugin-jest@27.6.0 │ └── @typescript-eslint/eslint-plugin@6.10.0 deduped └─┬ eslint-config-pixiebrix@0.36.0 ├── @typescript-eslint/eslint-plugin@7.0.2 └─┬ eslint-config-xo-typescript@3.0.0 └── @typescript-eslint/eslint-plugin@6.10.0 deduped invalid: ">=7.0.2" from node_modules/eslint-config-xo-typescript ```
关闭于 2024-10-18 3 条评论