'import/resolver': { node: { extensions: ['.js', '.jsx', '.ts', '.tsx'],'import/resolver': { node: { extensions: ['.js', '.jsx', '.ts', '.tsx'],module Directory code example

Example 1: 'import/resolver': { node: { extensions: ['.js', '.jsx', '.ts', '.tsx'],'import/resolver': { node: { extensions: ['.js', '.jsx', '.ts', '.tsx'],module Directory

{
    ...
    settings: {
        ...
        'import/resolver': {
            node: {
                extensions: ['.js', '.jsx', '.ts', '.tsx'],
                moduleDirectory: ['node_modules', 'src/'],
            },
        },
    }
}

Example 2: 'import/resolver': { node: { extensions: ['.js', '.jsx', '.ts', '.tsx'],'import/resolver': { node: { extensions: ['.js', '.jsx', '.ts', '.tsx'],module Directory

{
  "settings": {
    "import/resolver": {
      "node": {
        "extensions": [".js", ".jsx", ".ts", ".tsx"]
      }
    }
  },
  ...
}