THRIFT-4653: ES6 classes support (#1615)
* ES6 classes support
* Lint generated code
* ES6 Tests for NodeJS
* Add eslint rules for nodejs
* Run prettier/eslint on nodejs test code
diff --git a/package.json b/package.json
index 94ff766..07607cd 100644
--- a/package.json
+++ b/package.json
@@ -43,15 +43,20 @@
"buffer-equals": "^1.0.4",
"commander": "^2.14.1",
"connect": "^3.6.6",
+ "eslint": "^5.7.0",
+ "eslint-config-prettier": "^3.1.0",
+ "eslint-plugin-prettier": "^3.0.0",
"istanbul": "^0.4.5",
"jsdoc": "^3.5.5",
- "prettier": "1.11.1",
+ "prettier": "^1.14.3",
"tape": "^4.9.0",
"utf-8-validate": "^4.0.0"
},
"scripts": {
"cover": "lib/nodejs/test/testAll.sh COVER",
"test": "lib/nodejs/test/testAll.sh",
- "prettier": "prettier --write '**/*.js'"
+ "prettier": "prettier --write '**/*.js'",
+ "lint": "eslint lib/nodejs/. --ext .js",
+ "lint-tests": "eslint lib/nodejs/test/. --ext .js"
}
}