// Disable, enable, configure rules in file comments (added at the top of the file)
/* eslint-disable */
/* eslint-enable */
/* eslint eqeqeq: 0, curly: 2 */
// Turn esLint off for a single line of JS code like this:
// eslint-disable-next-line
console.log("test");
Copy the code
JSX syntax section:
<Dropdown overlay={menu} className="m-action-select">
{/* eslint-disable-next-line */}
<a
className="ant-dropdown-link"
onClick={(e) = > e.preventDefault()}
>
<span className="m-action-select-title">Operation management</span>
<DownOutlined />
</a>
</Dropdown>
Copy the code