tessl install tessl/npm-acorn-jsx@5.3.0JSX parsing plugin for the Acorn JavaScript parser that enables fast parsing of React JSX syntax
Agent Success
Agent success rate when using this tile
76%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.69x
Baseline
Agent success rate without this tile
45%
A utility that parses JSX code containing boolean attributes and extracts information about those attributes.
<input disabled /> and identify that the disabled attribute has a null value @test<button selected /> and identify that the selected attribute has a null value @test<input disabled checked /> and identify multiple boolean attributes with null values @test<input type="text" disabled /> with mixed boolean and string attributes and correctly distinguish between them @test@generates
/**
* Parses JSX code and returns an array of boolean attributes found in the code.
* Each boolean attribute object contains the attribute name and its value (should be null).
*
* @param {string} jsxCode - The JSX code to parse
* @returns {Array<{name: string, value: null}>} Array of boolean attributes with their values
* @throws {Error} If the JSX code is invalid
*/
function parseBooleanAttributes(jsxCode) {
// Implementation here
}
module.exports = { parseBooleanAttributes };Provides JavaScript parsing capabilities.
Provides JSX parsing support for Acorn parser.