Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 22, 2021
1 parent 1b4af4c commit 5b189b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@
"trailingComma": "none"
},
"xo": {
"prettier": true,
"rules": {
"no-var": "off",
"prefer-arrow-callback": "off"
}
"prettier": true
},
"remarkConfig": {
"plugins": [
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ npm install unist-util-remove-position
import remark from 'remark'
import {removePosition} from 'unist-util-remove-position'

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

removePosition(tree, true)

Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import remark from 'remark'
import {u} from 'unist-builder'
import {removePosition} from './index.js'

test('removePosition()', function (t) {
var empty = {position: undefined}
test('removePosition()', (t) => {
const empty = {position: undefined}

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

0 comments on commit 5b189b0

Please sign in to comment.