Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 401 Bytes

package-boundary.md

File metadata and controls

17 lines (11 loc) · 401 Bytes

Package Boundary

Ensures boundaries for modules are enforced. Boundaries are defined by presence of index file in the directory.

Anything that can be consumed outside module boundary should be exported from the index file.

Examples of incorrect code for this rule.

import x from '../utils/main'

Examples of correct code for this rule.

import x from '../utils'