How to use a custom linter after calling CodeMirror.registerHelper()

oh thank you! what might this langaugeData be? is this the languageData from EditorState?

EDIT: oh nevermind that. I found old posts where you showed how to use it

Question: How to augment language completion list with 'completeAnyWord'? - #2 by marijn & Can I use autocomplete without implementing a parser (or language)? - #2 by marijn

However, it’s still not working for me. Here’s a snippet of my code:

viewRef.current.dispatch({
        effects: [
          autocompleteCompartment.reconfigure(
            autocomplete
              ? [
                  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
                  // @ts-ignore
                  EditorState.languageData.of(() => ({
                    autocomplete: completeFromList(hintList),
                  })),
                  autocompletion(),
                ]
              : []
          ),
        ],
      });

Without autocompletion(), i’m not getting any errors but still I can’t see the custom list nor the default list. And when I do include autocompletion() it errors out with the following:

Uncaught TypeError: provider is not a function or its return value is not iterable
    at EditorState.languageDataAt (index.js:2826:1)
    at CompletionState.update (index.js:997:1)
    at StateField.update [as updateF] (index.js:1136:1)
    at Object.update (index.js:1798:1)
    at EditorState.eval [as computeSlot] (index.js:2630:1)
    at ensureAddr (index.js:2034:1)
    at new EditorState (index.js:2567:1)
    at EditorState.applyTransaction (index.js:2630:1)
    at get state [as state] (index.js:2281:1)
    at EditorView.update (index.js:6569:1)

:pray: