Skip to content

Commit d88a419

Browse files
committed
fix: remove no-unpublished-bin from recommended
1 parent 42d1597 commit d88a419

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ For [Shareable Configs](https://eslint.org/docs/latest/developer-guide/shareable
157157
| [no-restricted-require](docs/rules/no-restricted-require.md) | disallow specified modules when loaded by `require` | | | |
158158
| [no-sync](docs/rules/no-sync.md) | disallow synchronous methods | | | |
159159
| [no-top-level-await](docs/rules/no-top-level-await.md) | disallow top-level `await` in published modules | | | |
160-
| [no-unpublished-bin](docs/rules/no-unpublished-bin.md) | disallow `bin` files that npm ignores | 🟢 ✅ | | |
160+
| [no-unpublished-bin](docs/rules/no-unpublished-bin.md) | disallow `bin` files that npm ignores | | | |
161161
| [no-unpublished-import](docs/rules/no-unpublished-import.md) | disallow `import` declarations which import private modules | 🟢 ✅ | | |
162162
| [no-unpublished-require](docs/rules/no-unpublished-require.md) | disallow `require()` expressions which import private modules | 🟢 ✅ | | |
163163
| [no-unsupported-features/es-builtins](docs/rules/no-unsupported-features/es-builtins.md) | disallow unsupported ECMAScript built-ins on the specified version | 🟢 ✅ | | |

docs/rules/no-unpublished-bin.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Disallow `bin` files that npm ignores (`n/no-unpublished-bin`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-n#-configs): 🟢 `recommended-module`, ✅ `recommended-script`.
4-
53
<!-- end auto-generated rule header -->
64

5+
Users can safely disable this rule if using npm v10 and later.
6+
77
We can publish CLI commands by `npm`. It uses `bin` field of `package.json`.
88

99
```json
@@ -27,17 +27,19 @@ If `npm` ignores the files in `bin` field, this rule warns the files.
2727
```json
2828
{
2929
"rules": {
30-
"n/no-unpublished-bin": ["error", {
31-
"convertPath": null
32-
}]
30+
"n/no-unpublished-bin": [
31+
"error",
32+
{
33+
"convertPath": null
34+
}
35+
]
3336
}
3437
}
3538
```
3639

3740
#### convertPath
3841

39-
This can be configured in the rule options or as a shared setting [`settings.convertPath`](../shared-settings.md#convertpath).
40-
Please see the shared settings documentation for more information.
42+
This can be configured in the rule options or as a shared setting [`settings.convertPath`](../shared-settings.md#convertpath). Please see the shared settings documentation for more information.
4143

4244
## 🔎 Implementation
4345

lib/rules/no-unpublished-bin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module.exports = {
1515
meta: {
1616
docs: {
1717
description: "disallow `bin` files that npm ignores",
18-
recommended: true,
1918
url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md",
2019
},
2120
type: "problem",

0 commit comments

Comments
 (0)