eslint Unable to resolve path to module 'expect' import/no-unresolved code example
Example: unable to resolve path to module eslint(import/no-unresolved) absoute path
{
...
settings: {
...
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
moduleDirectory: ['node_modules', 'src/'],
},
},
}
}