Skip to content

Commit

Permalink
🐛 support * in engines.node (fixes #155)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed May 23, 2019
1 parent fd9d19d commit e5aee3c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ignore": "^5.1.1",
"minimatch": "^3.0.4",
"resolve": "^1.10.1",
"semver": "^6.0.0"
"semver": "^6.1.0"
},
"devDependencies": {
"@mysticatea/eslint-plugin": "^10.0.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"private": true,
"name": "test",
"engines": {
"node": "*"
}
}
10 changes: 10 additions & 0 deletions tests/lib/rules/no-unsupported-features/es-syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,16 @@ ruleTester.run(
},
],
},
{
filename: fixture("star/a.js"),
code: '"use strict"; let a = 1',
errors: [
{
messageId: "no-block-scoped-variables-strict",
data: { supported: "4.0.0", version: "*" },
},
],
},
{
code: "var a = async () => 1",
options: [{ version: "7.1.0" }],
Expand Down

0 comments on commit e5aee3c

Please sign in to comment.