Saber ESLint config.
ESLint has issues with PNP. First, install the following:
yarn add -D eslint eslint-import-resolver-node eslint-plugin-import @rushstack/eslint-patch
Then, in your .eslintrc.js
, add:
"use strict";
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: ["@saberhq/eslint-config"],
parserOptions: {
project: "tsconfig.json",
},
};