Skip to content

Commit

Permalink
fix: prevent errors when the plugin is used with eslint < 8.40.0 by r…
Browse files Browse the repository at this point in the history
…aising 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
  • Loading branch information
rlaffers committed Sep 28, 2023
1 parent e768c86 commit 3af1b77
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 59 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"name": "eslint-plugin-xstate",
"version": "0.0.0-semantically-released",
"description": "ESLint rules for XState",
"keywords": [
"eslint",
"eslintplugin",
"eslint-plugin"
],
"keywords": ["eslint", "eslintplugin", "eslint-plugin"],
"author": "Richard Laffers",
"main": "lib/index.js",
"scripts": {
Expand All @@ -28,7 +24,7 @@
"@commitlint/config-conventional": "^17.0.3",
"commitizen": "^4.2.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.48.0",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
Expand All @@ -40,7 +36,7 @@
"semantic-release": "^21.0.7"
},
"peerDependencies": {
"eslint": "^8.17.0"
"eslint": "^8.40.0"
},
"engines": {
"node": ">=16.0.0"
Expand Down
120 changes: 68 additions & 52 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3af1b77

Please sign in to comment.