Skip to content

Commit 5b189b0

Browse files
committed
Refactor code-style
1 parent 1b4af4c commit 5b189b0

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,7 @@
6969
"trailingComma": "none"
7070
},
7171
"xo": {
72-
"prettier": true,
73-
"rules": {
74-
"no-var": "off",
75-
"prefer-arrow-callback": "off"
76-
}
72+
"prettier": true
7773
},
7874
"remarkConfig": {
7975
"plugins": [

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npm install unist-util-remove-position
2727
import remark from 'remark'
2828
import {removePosition} from 'unist-util-remove-position'
2929

30-
var tree = remark().parse('Some _emphasis_, **importance**, and `code`.')
30+
const tree = remark().parse('Some _emphasis_, **importance**, and `code`.')
3131

3232
removePosition(tree, true)
3333

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import remark from 'remark'
33
import {u} from 'unist-builder'
44
import {removePosition} from './index.js'
55

6-
test('removePosition()', function (t) {
7-
var empty = {position: undefined}
6+
test('removePosition()', (t) => {
7+
const empty = {position: undefined}
88

99
t.same(
1010
removePosition(remark().parse('Some **strong**, _emphasis_, and `code`.')),

0 commit comments

Comments
 (0)