Skip to content

Commit

Permalink
docs: fix a few spelling mistakes
Browse files Browse the repository at this point in the history
Searched using cspell.
  • Loading branch information
bmish committed Jan 27, 2020
1 parent 6274d96 commit 986ba74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -420,9 +420,9 @@ settings:

A regex for packages should be treated as internal. Useful when you are utilizing a monorepo setup or developing a set of packages that depend on each other.

By default, any package referenced from [`import/external-module-folders`](#importexternal-module-folders) will be considered as "external", including packages in a monorepo like yarn workspace or lerna emvironentment. If you want to mark these packages as "internal" this will be useful.
By default, any package referenced from [`import/external-module-folders`](#importexternal-module-folders) will be considered as "external", including packages in a monorepo like yarn workspace or lerna environment. If you want to mark these packages as "internal" this will be useful.

For example, if you pacakges in a monorepo are all in `@scope`, you can configure `import/internal-regex` like this
For example, if your packages in a monorepo are all in `@scope`, you can configure `import/internal-regex` like this

```yaml
# .eslintrc.yml
Expand Down
2 changes: 1 addition & 1 deletion src/ExportMap.js
Expand Up @@ -319,7 +319,7 @@ ExportMap.for = function (context) {

const content = fs.readFileSync(path, { encoding: 'utf8' })

// check for and cache unambigious modules
// check for and cache unambiguous modules
if (!unambiguous.test(content)) {
log('ignored path due to unambiguous regex:', path)
exportCache.set(cacheKey, null)
Expand Down
2 changes: 1 addition & 1 deletion utils/ModuleCache.js
Expand Up @@ -22,7 +22,7 @@ class ModuleCache {
get(cacheKey, settings) {
if (this.map.has(cacheKey)) {
const f = this.map.get(cacheKey)
// check fresness
// check freshness
if (process.hrtime(f.lastSeen)[0] < settings.lifetime) return f.result
} else log('cache miss for', cacheKey)
// cache miss
Expand Down

0 comments on commit 986ba74

Please sign in to comment.