The TypeScript server plugin can be enabled by the following settings in tsconfig.json:
{
"compilerOptions": {
// ...
"plugins": [
// ...
{
"name": "eslint-plugin-import-access"
}
]
}
}
In addition, options can be provided to the plugin:
{
"compilerOptions": {
// ...
"plugins": [
// ...
{
"name": "eslint-plugin-import-access",
"jsdoc": {
"indexLoophole": false,
"filenameLoophole": true,
"defaultImportability": "package"
}
}
]
}
}
See details of these options at the reference of the import-access/jsdoc rule.