fix(dev,eslint): remove @eslint/markdown since 'no-irregular-whitespace' breaks with it

This commit is contained in:
Guz
2024-10-30 10:34:49 -03:00
parent 478dd0216e
commit a7b5ab174b
4 changed files with 774 additions and 1571 deletions

View File

@@ -300,7 +300,7 @@ var htmx = (function () {
* Returns the input values that would resolve for a given element via the htmx value resolution mechanism.
* @param {Element} elt - The element to resolve values on.
* @param {HttpVerb} type - The request type (e.g. **get** or **post**) non-GET's will include the enclosing form of the element. Defaults to **post**.
* @returns {Object}
* @returns {object}
* @see https://htmx.org/api/#values
*/
values: function (elt, type) {
@@ -937,7 +937,7 @@ var htmx = (function () {
/**
* Finds an element matching the selector.
* @param {ParentNode|string} eltOrSelector - The root element to find the matching element in, inclusive | The selector to match.
* @param {string} [selector] - the selector to match.
* @param {string} [selector] - The selector to match.
* @returns {Element|null}
* @see https://htmx.org/api/#find
*/
@@ -1051,7 +1051,7 @@ var htmx = (function () {
* Removes a class from the given element.
* @param {Node|string} node - Element to remove the class from.
* @param {string} clazz - The class to remove.
* @param {number} [delay] - the delay (in milliseconds before class is removed)
* @param {number} [delay] - The delay (in milliseconds before class is removed).
* @see https://htmx.org/api/#removeClass
*/
function removeClassFromElement(node, clazz, delay) {
@@ -1309,8 +1309,7 @@ var htmx = (function () {
* Adds an event listener to an element.
* @param {EventTarget|string} arg1 - The element to add the listener to | the event name to add the listener for.
* @param {string|EventListener} arg2 - The event name to add the listener for | the listener to add.
* @param {EventListener | object | boolean} [arg3] the listener to add | options to add
* @param {Object|boolean} [arg4] options to add
* @param {EventListener | object | boolean} [arg3] - The listener to add | Options to add.
* @returns {EventListener}
* @see https://htmx.org/api/#on
*/

View File

@@ -1,5 +1,4 @@
import js from '@eslint/js';
import markdown from '@eslint/markdown';
import stylistic from '@stylistic/eslint-plugin';
import jsdoc from 'eslint-plugin-jsdoc';
// @ts-expect-error eslint-plugin-jsdoc does not have type definitions
@@ -30,7 +29,6 @@ const config = [
'dist',
],
},
// Logic plugins
js.configs.recommended,
(/** @type {Config} */ (ts.configs.eslintRecommended)),
@@ -109,9 +107,9 @@ const config = [
'import/no-useless-path-segments': 'error',
'import/no-webpack-loader-syntax': 'error',
'import/order': 'off',
// JSDoc
'jsdoc/check-indentation': 'warn',
'jsdoc/check-line-alignment': 'warn',
'jsdoc/check-syntax': 'warn',
'jsdoc/check-template-names': 'warn',
@@ -160,7 +158,6 @@ const config = [
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
...json.configs['recommended'],
},
...(/** @type {{recommended: Config[]}} */ (markdown.configs).recommended),
];
/**

2330
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,6 @@
"type": "module",
"devDependencies": {
"@eslint/js": "^9.12.0",
"@eslint/markdown": "^6.2.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@types/eslint__js": "^8.42.3",
"eslint": "^9.12.0",