We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jsx-tag-spacing
1 parent 5952dbf commit de9a357Copy full SHA for de9a357
lib/rules/jsx-tag-spacing.js
@@ -204,9 +204,11 @@ module.exports = {
204
beforeSelfClosing: 'always',
205
afterOpening: 'never'
206
};
207
- for (var key in options) {
208
- if (options.hasOwnProperty(key) && context.options[0].hasOwnProperty(key)) {
209
- options[key] = context.options[0][key];
+ if (context.options[0]) {
+ for (var key in options) {
+ if (options.hasOwnProperty(key) && context.options[0].hasOwnProperty(key)) {
210
+ options[key] = context.options[0][key];
211
+ }
212
}
213
214
0 commit comments