mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Update to eslint 1.2.1
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
"babel-eslint": "^4.0.5",
|
||||
"babel-loader": "^5.3.2",
|
||||
"coveralls": "~2.10.0",
|
||||
"eslint": "^1.2.0",
|
||||
"eslint": "^1.2.1",
|
||||
"eventemitter2": "^0.4.14",
|
||||
"istanbul": "~0.3.5",
|
||||
"lodash": "^3.10.0",
|
||||
|
||||
@@ -3,13 +3,19 @@
|
||||
const hashjs = require('hash.js');
|
||||
const Sha512 = require('./sha512');
|
||||
|
||||
function unused() {}
|
||||
|
||||
function isVirtual(_, __, descriptor) {
|
||||
unused(_, __);
|
||||
|
||||
descriptor.value = function() {
|
||||
throw new Error('virtual method not implemented ');
|
||||
};
|
||||
}
|
||||
|
||||
function cached(_, name, descriptor) {
|
||||
unused(_);
|
||||
|
||||
const computer = descriptor.value;
|
||||
const key = '_' + name;
|
||||
descriptor.value = function() {
|
||||
|
||||
Reference in New Issue
Block a user