eslint-plugin-prohibit-import
v0.0.6
Published
Prohibit Import for ESLint Plugin
Downloads
1
Maintainers
Readme
ESLint Plugin
Install
npm install --save-dev eslint-plugin-prohibit-import
Configuration
// Configure in the .eslintrc.js file
module.exports = {
...,
plugins: [
"prohibit-import"
],
rules: {
"prohibit-import/config": [
"error", // Tip Status
{
exclude: ['src/utils'], // Folders to be excluded from inspection
pkgs: ['lodash'], // Name of package to be disabled
fix: true, // Whether to repair automatically, default true
}
]
}
}