Skip to content

Commit

Permalink
Bump eslint-plugin-n from 16.6.2 to 17.8.1 (#169)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 唯然 <[email protected]>
  • Loading branch information
dependabot[bot] and aladdin-add authored Jun 7, 2024
1 parent 61a829e commit 69f342c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 1 addition & 5 deletions eslint-internal/config/+node.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ module.exports = [
},
rules: {
"n/exports-style": ["error", "module.exports"],
"n/file-extension-in-import": [
"error",
"always",
{ ".js": "never", ".ts": "never", ".tsx": "never" },
],
"n/file-extension-in-import": ["error", "always"],
"n/no-callback-literal": "off",
"n/no-deprecated-api": "error",
"n/no-exports-assign": "error",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"eslint": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-eslint-plugin": "^6.0.0",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-n": "^17.8.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-vue": "^9.25.0",
"espree": "^10.0.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch-lines.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
module.exports = { fetchLines }

async function* fetchLines(url) {
const response = await fetch(url)
const response = await fetch(url) // eslint-disable-line n/no-unsupported-features/node-builtins -- non-production code
yield* (await response.text()).split("\n")
}
4 changes: 3 additions & 1 deletion scripts/update-docs-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ ${body.trim() ? body : "| | Now there are no rules. | |"}`
const body = rules
.map(
({ ruleId, replacedBy }) =>
`| ${toRuleLink(ruleId)} | ${replacedBy.map(toRuleLink).join(", ")} |`,
`| ${toRuleLink(ruleId)} | ${replacedBy
.map(toRuleLink)
.join(", ")} |`,
)
.join("\n")
return `| Rule ID | Replaced By |
Expand Down
4 changes: 3 additions & 1 deletion scripts/update-docs-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ async function main() {

if (deprecated) {
headerLines.push(
`- 🚫 This rule was deprecated and replaced by ${replacedBy.map(toRuleLink).join(",")} rule${replacedBy.length > 1 ? "s" : ""}.`,
`- 🚫 This rule was deprecated and replaced by ${replacedBy
.map(toRuleLink)
.join(",")} rule${replacedBy.length > 1 ? "s" : ""}.`,
)
}

Expand Down

0 comments on commit 69f342c

Please sign in to comment.