Skip to content

Commit 986ba74

Browse files
committed
docs: fix a few spelling mistakes
Searched using cspell.
1 parent 6274d96 commit 986ba74

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ settings:
420420

421421
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.
422422

423-
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.
423+
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.
424424

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

427427
```yaml
428428
# .eslintrc.yml

src/ExportMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ ExportMap.for = function (context) {
319319

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

322-
// check for and cache unambigious modules
322+
// check for and cache unambiguous modules
323323
if (!unambiguous.test(content)) {
324324
log('ignored path due to unambiguous regex:', path)
325325
exportCache.set(cacheKey, null)

utils/ModuleCache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ModuleCache {
2222
get(cacheKey, settings) {
2323
if (this.map.has(cacheKey)) {
2424
const f = this.map.get(cacheKey)
25-
// check fresness
25+
// check freshness
2626
if (process.hrtime(f.lastSeen)[0] < settings.lifetime) return f.result
2727
} else log('cache miss for', cacheKey)
2828
// cache miss

0 commit comments

Comments
 (0)