Skip to content

Commit b9596ad

Browse files
committed
update schema and docblocks
1 parent b153cfc commit b9596ad

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

lib/rules/no-common-typos.js

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,18 @@ module.exports = {
3535
recommended: false
3636
},
3737
schema: [{
38-
type: 'object',
39-
rules: {
40-
type: 'array',
41-
items: {
42-
type: 'object',
43-
properties: {
44-
pattern: {
45-
type: 'string'
46-
},
47-
correct: {
48-
type: 'string'
49-
}
38+
type: 'array',
39+
items: {
40+
type: 'object',
41+
properties: {
42+
pattern: {
43+
type: 'string'
5044
},
51-
additionalProperties: false
52-
}
45+
correct: {
46+
type: 'string'
47+
}
48+
},
49+
additionalProperties: false
5350
}
5451
}],
5552
fixable: 'code'
@@ -60,9 +57,9 @@ module.exports = {
6057
var rules = context.options || [];
6158

6259
/**
63-
* Checks if we are using an incorrect cased dangerouslySetInnerHTML attribute.
60+
* Checks if we are using an an incorrect attribute name.
6461
* @param {ASTNode} node The AST node being checked.
65-
* @returns {Boolean} True if we are using a ref attribute, false if not.
62+
* @returns {Boolean} True if an incorrect attribute name is used, false if not.
6663
*/
6764
function isIncorrectAttributeName(regex, correct, node) {
6865
return Boolean(

0 commit comments

Comments
 (0)