Closed Yolijn closed 8 years ago
While fixing a no-sequences eslint error, I saw the issue was raised due to a misinterpreted array. We should be thorough and try to always find these mistakes, for example by preventing whitespace before array lookups.
no-sequences
unlessStates.forEach(function (name) { this.generator.optimizeUnlessCharList(this.generator.getState(name)); }, this); // This semicolon was missing! ['ForwardAxis', 'ReverseAxis', 'Wildcard', 'SequenceType', 'ItemType', 'AnyKindTest', 'DocumentTest', 'TextTest', 'CommentTest', 'PITest', 'AttributeTest', 'SchemaAttributeTest', 'ElementTest', 'SchemaElementTest'].forEach(function (name) { this.generator.optimizeStringSequences(this.generator.getState(name)); }, this);
While fixing a
no-sequences
eslint error, I saw the issue was raised due to a misinterpreted array. We should be thorough and try to always find these mistakes, for example by preventing whitespace before array lookups.