Skip to content

Commit 199637a

Browse files
committed
Small clean up
1 parent e55163d commit 199637a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/rules/a11y-no-title-usage.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1+
const url = require('../url')
12
const {getJSXOpeningElementAttribute} = require('../utils/get-jsx-opening-element-attribute')
23

34
module.exports = {
45
meta: {
5-
type: 'error', // TODO: Confirm the type
6+
type: 'error',
67
docs: {
78
description: 'Disallow usage of title attribute on some components',
89
recommended: true,
9-
url: null, // TODO: Add URL
10+
url: url(module),
1011
},
1112
messages: {
1213
noTitleOnRelativeTime: 'Avoid using the title attribute on RelativeTime.',
1314
},
1415
fixable: 'code',
15-
schema: [],
1616
},
1717

1818
create(context) {
@@ -25,7 +25,7 @@ module.exports = {
2525
node: title,
2626
messageId: 'noTitleOnRelativeTime',
2727
fix(fixer) {
28-
const start = title.range[0] - 1 // Accounts for whitespace
28+
const start = title.range[0] - 1
2929
const end = title.range[1]
3030
return fixer.removeRange([start, end])
3131
},

0 commit comments

Comments
 (0)