mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
9cdda110da
* Refactoring based on LGTM * Fixed jsdoc/no-undefined-types Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
{
|
|
"extends": [
|
|
"codex"
|
|
],
|
|
"rules": {
|
|
/**
|
|
* Temporary suppress some errors. We need to fix them partially in next patches
|
|
*/
|
|
"import/no-duplicates": ["warn"],
|
|
"@typescript-eslint/triple-slash-reference": ["off"],
|
|
"jsdoc/no-undefined-types": ["warn", {"definedTypes": [
|
|
"API",
|
|
"BlockToolConstructable",
|
|
"EditorConfig",
|
|
"Tool",
|
|
"ToolSettings"
|
|
]}]
|
|
},
|
|
"settings": {
|
|
"jsdoc": {
|
|
"mode": "typescript"
|
|
}
|
|
},
|
|
"globals": {
|
|
"Node": true,
|
|
"Range": true,
|
|
"HTMLElement": true,
|
|
"HTMLDivElement": true,
|
|
"Element": true,
|
|
"Selection": true,
|
|
"SVGElement": true,
|
|
"Text": true,
|
|
"InsertPosition": true,
|
|
"PropertyKey": true,
|
|
"MouseEvent": true,
|
|
"TouchEvent": true,
|
|
"KeyboardEvent": true,
|
|
"ClipboardEvent": true,
|
|
"DragEvent": true,
|
|
"Event": true,
|
|
"EventTarget": true,
|
|
"Document": true,
|
|
"NodeList": true,
|
|
"File": true,
|
|
"FileList": true,
|
|
"MutationRecord": true,
|
|
"AddEventListenerOptions": true,
|
|
"DataTransfer": true,
|
|
"DOMRect": true,
|
|
"ClientRect": true,
|
|
"ArrayLike": true,
|
|
"unknown": true
|
|
}
|
|
}
|