File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -35,21 +35,18 @@ module.exports = {
35
35
recommended : false
36
36
} ,
37
37
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'
50
44
} ,
51
- additionalProperties : false
52
- }
45
+ correct : {
46
+ type : 'string'
47
+ }
48
+ } ,
49
+ additionalProperties : false
53
50
}
54
51
} ] ,
55
52
fixable : 'code'
@@ -60,9 +57,9 @@ module.exports = {
60
57
var rules = context . options || [ ] ;
61
58
62
59
/**
63
- * Checks if we are using an incorrect cased dangerouslySetInnerHTML attribute.
60
+ * Checks if we are using an an incorrect attribute name .
64
61
* @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.
66
63
*/
67
64
function isIncorrectAttributeName ( regex , correct , node ) {
68
65
return Boolean (
You can’t perform that action at this time.
0 commit comments