ES6 Plato on GitHub
Report Home
Summary Display
plato/src/ecmafeatures.ts
Maintainability
54.62
Lines of code
52
Difficulty
3.64
Estimated Errors
0.13
Function weight
By Complexity
By SLOC
"use strict"; import { EcmaFeatures } from "@ponticus/types"; export const DefaultECMAFeatures: EcmaFeatures = { // enable parsing of arrow functions arrowFunctions: true, // enable parsing of let/const blockBindings: true, // enable parsing of destructured arrays and objects destructuring: true, // enable parsing of regular expression y flag regexYFlag: true, // enable parsing of regular expression u flag regexUFlag: true, // enable parsing of template strings templateStrings: true, // enable parsing of binary literals binaryLiterals: true, // enable parsing of ES6 octal literals octalLiterals: true, // enable parsing unicode code point escape sequences unicodeCodePointEscapes: true, // enable parsing of default parameters defaultParams: true, // enable parsing of rest parameters restParams: true, // enable parsing of for-of statement forOf: true, // enable parsing computed object literal properties objectLiteralComputedProperties: true, // enable parsing of shorthand object literal methods objectLiteralShorthandMethods: true, // enable parsing of shorthand object literal properties objectLiteralShorthandProperties: true, // Allow duplicate object literal properties (except '__proto__') objectLiteralDuplicateProperties: true, // enable parsing of generators/yield generators: true, // enable parsing spread operator spread: true, // enable parsing classes classes: true, // enable parsing of modules modules: true, // enable React JSX parsing jsx: true, // enable return in global scope globalReturn: true, typescript: true, experimentalObjectRestSpread: true, };