ESLint 2.9.0 fixes some minor bugs that we have been experiencing and introduces some new rules that we may wish to consider. PR-URL: https://github.com/nodejs/node/pull/6498 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
32 lines
800 B
JavaScript
32 lines
800 B
JavaScript
/**
|
|
* @fileoverview The list of feature flags supported by the parser and their default
|
|
* settings.
|
|
* @author Nicholas C. Zakas
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Requirements
|
|
//------------------------------------------------------------------------------
|
|
|
|
// None!
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Public
|
|
//------------------------------------------------------------------------------
|
|
|
|
module.exports = {
|
|
|
|
// React JSX parsing
|
|
jsx: false,
|
|
|
|
// allow return statement in global scope
|
|
globalReturn: false,
|
|
|
|
// allow implied strict mode
|
|
impliedStrict: false,
|
|
|
|
// allow experimental object rest/spread
|
|
experimentalObjectRestSpread: false
|
|
};
|