summaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorbforbis <bpforbis@gmail.com>2018-10-28 11:27:38 -0400
committerJames E. King III <jking@apache.org>2018-10-28 11:27:38 -0400
commitda1169d75b154e48871851ea8d731fccb0876fe7 (patch)
tree6e74de09281e72039d2f7248d6e6349f2ca5f236 /.eslintrc.json
parentcd829a0b9a5c66203b63350fa029589669ec43f6 (diff)
downloadthrift-da1169d75b154e48871851ea8d731fccb0876fe7.tar.gz
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
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json24
1 files changed, 24 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 000000000..0aae820ec
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,24 @@
+{
+ "env": {
+ "es6": true,
+ "node": true
+ },
+ "extends": [
+ "eslint:recommended",
+ "plugin:prettier/recommended"
+ ],
+ "parserOptions": {
+ "ecmaVersion": 2017
+ },
+ "rules": {
+ "no-console": "off",
+ "no-var": "error",
+ "prefer-const": "error",
+ "no-constant-condition": [
+ "error",
+ {
+ "checkLoops": false
+ }
+ ]
+ }
+}