MCPcopy Create free account
hub / github.com/ampproject/amphtml / enableSyntax

Function enableSyntax

build-system/babel-config/eslint-config.js:28–34  ·  view source on GitHub ↗

* @return {{manipulateOptions(_opts: *, parserOpts: *): void}}

()

Source from the content-addressed store, hash-verified

26 * @return {{manipulateOptions(_opts: *, parserOpts: *): void}}
27 */
28function enableSyntax() {
29 return {
30 manipulateOptions(_opts, parserOpts) {
31 parserOpts.plugins.push('jsx', 'importAssertions');
32 },
33 };
34}
35
36module.exports = {
37 getEslintConfig,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected