Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 9, 2022
1 parent 1ab5509 commit f9a82c7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
- ubuntu-latest
- windows-latest
node:
- lts/erbium
- lts/ferium
- lts/*
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@
"parse-author": "^2.0.0",
"prettier": "^2.0.0",
"remark": "^14.0.0",
"remark-cli": "^10.0.0",
"remark-cli": "^11.0.0",
"remark-comment-config": "^7.0.0",
"remark-gfm": "^3.0.0",
"remark-github": "^11.0.0",
"remark-toc": "^8.0.0",
"remark-validate-links": "^11.0.0",
"remark-validate-links": "^12.0.0",
"rimraf": "^3.0.0",
"strip-indent": "^4.0.0",
"tape": "^5.0.0",
Expand All @@ -135,7 +135,7 @@
"typescript": "~4.4.0",
"unist-builder": "^3.0.0",
"unist-util-remove-position": "^4.0.0",
"xo": "^0.48.0"
"xo": "^0.52.0"
},
"scripts": {
"build-packages": "node script/build-presets && node script/build-rules",
Expand Down
4 changes: 2 additions & 2 deletions packages/unified-lint-rule/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {VFile} from 'vfile'
import type {Plugin} from 'unified'
import type {Label, Severity} from './lib/index.js'

export interface RuleMeta {
export type RuleMeta = {
/**
* Name of the lint rule
*/
Expand All @@ -29,4 +29,4 @@ export type Rule<Tree extends Node = Node, Options = unknown> = (
options: Options
) => Promise<Tree | undefined | void> | Tree | undefined | void

export {Severity, Label} from './lib/index.js'
export type {Severity, Label} from './lib/index.js'
2 changes: 1 addition & 1 deletion script/util/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function rule(filePath) {
const ruleId = path.basename(filePath).slice('remark-lint-'.length)
/** @type {Record<string, Checks>} */
const tests = {}
const code = fs.readFileSync(path.join(filePath, 'index.js'), 'utf-8')
const code = fs.readFileSync(path.join(filePath, 'index.js'), 'utf8')
const fileInfo = parse(code, {spacing: 'preserve'})[0]
const tags = fileInfo.tags
const moduleTag = tags.find((d) => d.tag === 'module')
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function normalize(messages) {
* @returns {Array<string>}
*/
function asStrings(messages) {
return messages.map((message) => String(message))
return messages.map(String)
}

/**
Expand Down

0 comments on commit f9a82c7

Please sign in to comment.