Why jump to the extreme? There are plenty of people who seemingly behave “normally”, but are internally sympathetic to some abhorrent views. Does that mean they can’t write JavaScript as well as the next person? If I’m privy to their beliefs that I find disagreeable, does that mean I should “out” them, even if their internalized beliefs have no discernible effect on the workplace?
I’m trying to find my place in the conversation as well. More questions bubble up the more I think. Do I really care that my neighbor is racist if I never interact with them?
From the employer's perspective, the definition of "extreme political views" would be the labor rights / pro-union parties (wherever there's not a two-party first-past-the-post system like USA, those often are explicit separate parties) and the communist party, but the working class would very much want that employers don't get to make that decision.
The criteria for too extreme should not be specific to employment. If some organization is considered too bad to exist (e.g. the Nazi party in post-WW2 germany), then it should be dismantled as such, but if the country considers a political movement legitimate enough to participate in elections and gain seats in government, then obviously supporting that organization or membership in it shouldn't be an obstacle for employment as well. I have no idea on what the legal status (if any) of KKK is today in USA, but whatever it is, IMHO it should be the same both for politics and employment.
If your views are that extreme maybe it isn't a workplace that should be taking action? Just a thought