aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--eslint.config.js2
-rw-r--r--src/dumbymap.mjs1
-rw-r--r--src/editor.mjs2
3 files changed, 3 insertions, 2 deletions
diff --git a/eslint.config.js b/eslint.config.js
index b2a1c54..ac88ddf 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -21,7 +21,7 @@ export default [
21 node: nodePlugin, 21 node: nodePlugin,
22 }, 22 },
23 rules: { 23 rules: {
24 'no-unused-vars': ['error', { 'varsIgnorePattern': '^_' }], 24 'no-unused-vars': ['warn', { 'varsIgnorePattern': '^_' }],
25 'import/no-unresolved': 'error', 25 'import/no-unresolved': 'error',
26 'no-console': ["error", { allow: ["info", "warn", "error"] }], 26 'no-console': ["error", { allow: ["info", "warn", "error"] }],
27 'eqeqeq': ['error', 'always'], 27 'eqeqeq': ['error', 'always'],
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// }}}
216const handleTypingInCodeBlock = (currentLine, selection) => { 216const 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