diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-09 12:58:56 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-09-09 13:00:07 +0800 |
| commit | 316ac023ff91fafca94cddfb59f4d0bce98612cf (patch) | |
| tree | 2e2ab6b1f1de3df08360a1f9d939e7d116089532 /src | |
| parent | 3cc1e78e2dcda4e703c20e5eb5e503f464373474 (diff) | |
chore: Improve eslint
Diffstat (limited to 'src')
| -rw-r--r-- | src/dumbymap.mjs | 1 | ||||
| -rw-r--r-- | src/editor.mjs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 6095f9c..a6029a5 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
| @@ -240,6 +240,7 @@ export const generateMaps = async (container) => { | |||
| 240 | Object.assign(result, { markers: markersFromLinks }) | 240 | Object.assign(result, { markers: markersFromLinks }) |
| 241 | return result | 241 | return result |
| 242 | }) | 242 | }) |
| 243 | /* eslint-disable no-unused-vars */ | ||
| 243 | } catch (_) { | 244 | } catch (_) { |
| 244 | console.warn('Fail to parse yaml config for element', target) | 245 | console.warn('Fail to parse yaml config for element', target) |
| 245 | } | 246 | } |
diff --git a/src/editor.mjs b/src/editor.mjs index f1c90ed..04b4125 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
| @@ -215,7 +215,7 @@ const getSuggestionsFromAliases = (option) => Object.entries(aliasesForMapOption | |||
| 215 | // }}} | 215 | // }}} |
| 216 | const handleTypingInCodeBlock = (currentLine, selection) => { | 216 | const handleTypingInCodeBlock = (currentLine, selection) => { |
| 217 | const text = currentLine.textContent | 217 | const text = currentLine.textContent |
| 218 | if (text.match(/^\s\+$/) && text.length % 2 != 0) { | 218 | if (text.match(/^\s\+$/) && text.length % 2 !== 0) { |
| 219 | // TODO Completion for even number of spaces | 219 | // TODO Completion for even number of spaces |
| 220 | } else if (text.match(/^-/)){ | 220 | } else if (text.match(/^-/)){ |
| 221 | // TODO Completion for YAML doc separator | 221 | // TODO Completion for YAML doc separator |