Environments

You can enable these to be recognized as valid by setting the ECMAScript version to 6 in your ESLint configuration.

If you want to allow additional constructor flags for any reason, you can specify them using an allowConstructorFlags option in .eslintrc. These flags will then be ignored by the rule regardless of the ecmaVersion setting.

Options

This rule has an object option for exceptions:

"allowConstructorFlags" is an array of flags

allowConstructorFlags

Examples of correct code for this rule with the { "allowConstructorFlags": ["u", "y"] } option: