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
I've experienced some issue when I was using xo with react package, I've used configuration from eslint-config-xo-react but it seems eslint-config-xo-typescript have a little issue with configuration.
It's line 306 at index.js
ui: Error: BaseConfig » eslint-config-xo-typescript:
ui: Configuration for rule "@typescript-eslint/no-floating-promises" is invalid:
ui: Value {"ignoreVoid":true,"ignoreIIFE":true} should NOT have additional properties.
ui: at validateRuleOptions (/Users/jay/GitHub/humantic/node_modules/eslint/lib/shared/config-validator.js:132:19)
ui: at /Users/jay/GitHub/humantic/node_modules/eslint/lib/shared/config-validator.js:187:9
ui: at Array.forEach (<anonymous>)
ui: at validateRules (/Users/jay/GitHub/humantic/node_modules/eslint/lib/shared/config-validator.js:184:30)
ui: at validateConfigArray (/Users/jay/GitHub/humantic/node_modules/eslint/lib/shared/config-validator.js:312:9)
ui: at CascadingConfigArrayFactory._finalizeConfigArray (/Users/jay/GitHub/humantic/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:464:13)
ui: at CascadingConfigArrayFactory.getConfigArrayForFile (/Users/jay/GitHub/humantic/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:275:21)
ui: at CLIEngine.isPathIgnored (/Users/jay/GitHub/humantic/node_modules/eslint/lib/cli-engine/cli-engine.js:953:18)
ui: at /Users/jay/GitHub/humantic/node_modules/xo/index.js:48:32
ui: at Array.filter (<anonymous>)
ui: error Command failed with exit code 1.
ui: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
I've reinstalled my node_modules and problem has gone. As you said, that was probably problem to @typescript-eslint but not exactly with update, maybe I had multiple instances of @typescript-eslint in monorepo and something messed up.
However, Thanks @sindresorhus for help. You're awesome <3 My issue got resolved.
I've experienced some issue when I was using
xo
withreact
package, I've used configuration fromeslint-config-xo-react
but it seemseslint-config-xo-typescript
have a little issue with configuration.It's line
306
atindex.js
The text was updated successfully, but these errors were encountered: