Closed goenning closed 1 year ago
Describe the bug Whenever I try to use the onDblClick event on a button tag, the eslint-plugin transforms to onDoubleClick, which is in invalid event on a button.
To Reproduce My config:
module.exports = { env: { browser: true, es2021: true, }, extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:solid/recommended", "prettier"], parser: "@typescript-eslint/parser", parserOptions: { ecmaVersion: "latest", sourceType: "module", }, plugins: ["@typescript-eslint"], rules: { "@typescript-eslint/consistent-type-imports": "error", }, };
<button onDblClick={() => console.log("Hey")}> Double Click me </button>
Expected behavior
The onDblClick event should not be transformed, it's a valid name.
Screenshots
Environment (please complete the following information):
node --version
eslint-plugin-solid
npm list eslint-plugin-solid
yarn why eslint-plugin-solid
eslint
npm list eslint
yarn why eslint
Additional context
Good catch—thanks so much for opening the issue! Fixed in v0.9.1.
v0.9.1
Describe the bug Whenever I try to use the onDblClick event on a button tag, the eslint-plugin transforms to onDoubleClick, which is in invalid event on a button.
To Reproduce My config:
Expected behavior
The onDblClick event should not be transformed, it's a valid name.
Screenshots
Environment (please complete the following information):
node --version
): 16.17.0eslint-plugin-solid
version (npm list eslint-plugin-solid
/yarn why eslint-plugin-solid
): eslint-plugin-solid@0.8.0eslint
version (npm list eslint
/yarn why eslint
): eslint@8.28.0Additional context