1.0.0 • Published 2 years ago
eslint-plugin-import-only-from-index v1.0.0
eslint-plugin-import-only-from-index
Installation
npm install -D eslint-plugin-import-from-index
Example
.eslintrc
"plugin": ["import-only-from-index"],
"rules": {
"import-only-from-index/import-only-from-index": ["error", ["src/components"]
}
tsconfig.json
"compilerOptions": {
"plugins": [
{
"name": "eslint-plugin-import-only-from-index",
"restrictedPath": "src/components"
}
]
}
License
MIT
1.0.0
2 years ago