Skip to content

Commit 92ea876

Browse files
nielsbomscagood
andauthored
docs: improve clarity of no-missing-import and no-missing-require (#455)
Co-authored-by: Sebastian Good <[email protected]>
1 parent 92abbc9 commit 92ea876

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ For [Shareable Configs](https://eslint.org/docs/latest/developer-guide/shareable
146146
| [no-extraneous-import](docs/rules/no-extraneous-import.md) | disallow `import` declarations which import extraneous modules | 🟢 ✅ | | |
147147
| [no-extraneous-require](docs/rules/no-extraneous-require.md) | disallow `require()` expressions which import extraneous modules | 🟢 ✅ | | |
148148
| [no-hide-core-modules](docs/rules/no-hide-core-modules.md) | disallow third-party modules which are hiding core modules | | ||
149-
| [no-missing-import](docs/rules/no-missing-import.md) | disallow `import` declarations which import non-existence modules | 🟢 ✅ | | |
150-
| [no-missing-require](docs/rules/no-missing-require.md) | disallow `require()` expressions which import non-existence modules | 🟢 ✅ | | |
149+
| [no-missing-import](docs/rules/no-missing-import.md) | disallow `import` declarations which import missing modules | 🟢 ✅ | | |
150+
| [no-missing-require](docs/rules/no-missing-require.md) | disallow `require()` expressions which import missing modules | 🟢 ✅ | | |
151151
| [no-mixed-requires](docs/rules/no-mixed-requires.md) | disallow `require` calls to be mixed with regular variable declarations | | | |
152152
| [no-new-require](docs/rules/no-new-require.md) | disallow `new` operators with calls to `require` | | | |
153153
| [no-path-concat](docs/rules/no-path-concat.md) | disallow string concatenation with `__dirname` and `__filename` | | | |

docs/rules/no-missing-import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Disallow `import` declarations which import non-existence modules (`n/no-missing-import`)
1+
# Disallow `import` declarations which import missing modules (`n/no-missing-import`)
22

33
💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-n#-configs): 🟢 `recommended-module`, ✅ `recommended-script`.
44

docs/rules/no-missing-require.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Disallow `require()` expressions which import non-existence modules (`n/no-missing-require`)
1+
# Disallow `require()` expressions which import missing modules (`n/no-missing-require`)
22

33
💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-n#-configs): 🟢 `recommended-module`, ✅ `recommended-script`.
44

lib/rules/no-missing-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
meta: {
3232
docs: {
3333
description:
34-
"disallow `import` declarations which import non-existence modules",
34+
"disallow `import` declarations which import missing modules",
3535
recommended: true,
3636
url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-import.md",
3737
},

lib/rules/no-missing-require.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
meta: {
1919
docs: {
2020
description:
21-
"disallow `require()` expressions which import non-existence modules",
21+
"disallow `require()` expressions which import missing modules",
2222
recommended: true,
2323
url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-require.md",
2424
},

0 commit comments

Comments
 (0)