Skip to content

Commit 3af1b77

Browse files
committed
fix: prevent errors when the plugin is used with eslint < 8.40.0 by raising the min required version
The plugin relies on context.sourceCode API which has been added in ESLint 8.40.0 BREAKING CHANGE: The minimum required eslint version has been raised to 8.40.0
1 parent e768c86 commit 3af1b77

File tree

2 files changed

+71
-59
lines changed

2 files changed

+71
-59
lines changed

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
"name": "eslint-plugin-xstate",
33
"version": "0.0.0-semantically-released",
44
"description": "ESLint rules for XState",
5-
"keywords": [
6-
"eslint",
7-
"eslintplugin",
8-
"eslint-plugin"
9-
],
5+
"keywords": ["eslint", "eslintplugin", "eslint-plugin"],
106
"author": "Richard Laffers",
117
"main": "lib/index.js",
128
"scripts": {
@@ -28,7 +24,7 @@
2824
"@commitlint/config-conventional": "^17.0.3",
2925
"commitizen": "^4.2.3",
3026
"cz-conventional-changelog": "^3.3.0",
31-
"eslint": "^8.48.0",
27+
"eslint": "^8.40.0",
3228
"eslint-config-prettier": "^8.5.0",
3329
"eslint-config-standard": "^17.0.0",
3430
"eslint-plugin-import": "^2.26.0",
@@ -40,7 +36,7 @@
4036
"semantic-release": "^21.0.7"
4137
},
4238
"peerDependencies": {
43-
"eslint": "^8.17.0"
39+
"eslint": "^8.40.0"
4440
},
4541
"engines": {
4642
"node": ">=16.0.0"

pnpm-lock.yaml

Lines changed: 68 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)