forked from apache/thrift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
THRIFT-4653: ES6 classes support (apache#1615)
* ES6 classes support * Lint generated code * ES6 Tests for NodeJS * Add eslint rules for nodejs * Run prettier/eslint on nodejs test code
- Loading branch information
Showing
18 changed files
with
5,131 additions
and
2,051 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# TODO: Use eslint on js lib and generated code | ||
|
||
# Ignore lib/js for now, which uses jshint currently | ||
lib/js/* | ||
# Ignore all generated code for now | ||
**/gen-* | ||
|
||
# Don't lint nested node_modules | ||
**/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.