This package contains the base eslint configuration for typescript projects.
npm add -D @abusix/eslint-config-base
Add the following to your .eslintrc.js
:
module.exports = {
extends: ["@abusix/eslint-config-base"],
};
If you have problems with custom import paths, you can add the following to your .eslintrc.js
to the project where you want to use this eslint config:
{
// ...
settings: {
"import/resolver": {
typescript: {}
}
},
// ...
}
Also make sure to install the following package to add typescript import resolver support:
npm add -D eslint-import-resolver-typescript