MCPcopy
hub / github.com/eslint/eslint / ParserOptions

Interface ParserOptions

lib/types/index.d.ts:945–981  ·  view source on GitHub ↗

* Parser options. * * @see [Specifying Parser Options](https://eslint.org/docs/latest/use/configure/language-options#specifying-parser-options)

Source from the content-addressed store, hash-verified

943 * @see [Specifying Parser Options](https://eslint.org/docs/latest/use/configure/language-options#specifying-parser-options)
944 */
945 interface ParserOptions {
946 /**
947 * Allow the use of reserved words as identifiers (if `ecmaVersion` is 3).
948 *
949 * @default false
950 */
951 allowReserved?: boolean | undefined;
952 /**
953 * An object indicating which additional language features you'd like to use.
954 *
955 * @see https://eslint.org/docs/latest/use/configure/language-options#specifying-parser-options
956 */
957 ecmaFeatures?:
958 | {
959 /**
960 * Allow `return` statements in the global scope.
961 *
962 * @default false
963 */
964 globalReturn?: boolean | undefined;
965 /**
966 * Enable global [strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode) (if `ecmaVersion` is 5 or greater).
967 *
968 * @default false
969 */
970 impliedStrict?: boolean | undefined;
971 /**
972 * Enable [JSX](https://facebook.github.io/jsx/).
973 *
974 * @default false
975 */
976 jsx?: boolean | undefined;
977 [key: string]: any;
978 }
979 | undefined;
980 [key: string]: any;
981 }
982
983 /**
984 * Options used for linting code with `Linter#verify` and `Linter#verifyAndFix`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…