-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XState version can be specified in ESLint config with settings.xstate.version item. Default shareable config now support xstate v5. The old v4 is supported by "all_v4" and "recommended_v4". BREAKING CHANGE: The default configs are no longer compatible with xstate v4. To continue working with xstate v4, use new shareable configs "all_v4" or "recommended_v4".
- Loading branch information
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module.exports = { | ||
withVersion(version, testCase) { | ||
if (typeof testCase === 'string') { | ||
return { | ||
code: testCase, | ||
settings: { | ||
xstate: { | ||
version, | ||
}, | ||
}, | ||
} | ||
} | ||
return { | ||
...testCase, | ||
settings: { | ||
xstate: { | ||
version, | ||
}, | ||
}, | ||
} | ||
}, | ||
} |