With this code:
import React from \'react\';
import { Link } from \'react-router\';
import { View, NavBar } from \'amazeui-touch\';
import * as Pages from \
If you have got a pre-commit task with husky running eslint, please continue reading. I tried most of the answers about parserOptions and parser values where my actual issue was about the node version I was using.
My current node version was 12.0.0, but husky was using my nvm default version somehow (even though I didn't have nvm in my system). This seems to be an issue with husky itself. So:
$HOME/.nvm folder which was not deleted when I removed nvm earlier.