babel-eslint
Advanced tools
Comparing version 5.0.0-beta5 to 5.0.0-beta6
{ | ||
"name": "babel-eslint", | ||
"version": "5.0.0-beta5", | ||
"version": "5.0.0-beta6", | ||
"description": "", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"acorn-to-esprima": "^2.0.3", | ||
"acorn-to-esprima": "^2.0.4", | ||
"babel-traverse": "^6.0.20", | ||
@@ -14,0 +14,0 @@ "babel-types": "^6.0.19", |
@@ -435,4 +435,14 @@ var assert = require("assert"); | ||
].join("\n")); | ||
parseAndAssertSame([ | ||
"var B = {", | ||
"get x () {", | ||
"return this.ecks;", | ||
"},", | ||
"set x (ecks) {", | ||
"this.ecks = ecks;", | ||
"}", | ||
"};" | ||
].join("\n")); | ||
}); | ||
}); | ||
}); |
@@ -1307,2 +1307,29 @@ /*eslint-env mocha*/ | ||
}); | ||
it("getter/setter #218", function () { | ||
verifyAndAssertMessages([ | ||
"class Person {", | ||
"set a (v) { }", | ||
"}" | ||
].join("\n"), | ||
{ "space-before-function-paren": 1, "space-before-keywords": 1, "indent": 1 }, | ||
[] | ||
) | ||
}); | ||
it("getter/setter #220", function () { | ||
verifyAndAssertMessages([ | ||
"var B = {", | ||
"get x () {", | ||
"return this.ecks;", | ||
"},", | ||
"set x (ecks) {", | ||
"this.ecks = ecks;", | ||
"}", | ||
"};" | ||
].join("\n"), | ||
{ "no-dupe-keys": 1 }, | ||
[] | ||
) | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65439
2002
Updatedacorn-to-esprima@^2.0.4