Skip to content

Commit 0364ed2

Browse files
committed
Fix formatting issues
1 parent 7c1abed commit 0364ed2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rules/jsx-key.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const docsUrl = require('../util/docsUrl');
1515

1616
const defaultOptions = {
1717
checkFragmentShorthand: false
18-
}
18+
};
1919

2020
module.exports = {
2121
meta: {
@@ -38,8 +38,8 @@ module.exports = {
3838
},
3939

4040
create(context) {
41-
const options = Object.assign({}, defaultOptions, context.options[0])
42-
const checkFragmentShorthand = options.checkFragmentShorthand
41+
const options = Object.assign({}, defaultOptions, context.options[0]);
42+
const checkFragmentShorthand = options.checkFragmentShorthand;
4343

4444
function checkIteratorElement(node) {
4545
if (node.type === 'JSXElement' && !hasProp(node.openingElement.attributes, 'key')) {
@@ -77,7 +77,7 @@ module.exports = {
7777
if (!checkFragmentShorthand) {
7878
return;
7979
}
80-
80+
8181
if (node.parent.type === 'ArrayExpression') {
8282
context.report({
8383
node,

0 commit comments

Comments
 (0)