@esri/eslint-plugin-calcite-components
Advanced tools
Comparing version 0.2.3-next.6 to 0.2.3
/* | ||
All material copyright ESRI, All Rights Reserved, unless otherwise specified. | ||
See https://github.com/Esri/calcite-design-system/blob/0.2.3-next.5/LICENSE.md for details. | ||
See https://github.com/Esri/calcite-design-system/blob/0.2.3/LICENSE.md for details. | ||
*/ | ||
@@ -13,3 +13,3 @@ 'use strict'; | ||
description: "This rule catches helps ban or warn against listened event types", | ||
category: "Consistency" | ||
category: "Consistency", | ||
}, | ||
@@ -27,13 +27,13 @@ schema: { | ||
type: "string", | ||
minLength: 1 | ||
} | ||
minLength: 1, | ||
}, | ||
}, | ||
additionalProperties: false, | ||
required: ["event"] | ||
} | ||
] | ||
required: ["event"], | ||
}, | ||
], | ||
}, | ||
uniqueItems: true | ||
uniqueItems: true, | ||
}, | ||
type: "problem" | ||
type: "problem", | ||
}, | ||
@@ -59,3 +59,3 @@ create: function (context) { | ||
node, | ||
message: buildMessage(eventName) | ||
message: buildMessage(eventName), | ||
}); | ||
@@ -71,9 +71,9 @@ } | ||
node, | ||
message: buildMessage(eventName) | ||
message: buildMessage(eventName), | ||
}); | ||
} | ||
} | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; | ||
@@ -92,3 +92,3 @@ | ||
category: "Possible Errors", | ||
recommended: true | ||
recommended: true, | ||
}, | ||
@@ -99,9 +99,9 @@ schema: [ | ||
items: { | ||
type: "string" | ||
type: "string", | ||
}, | ||
minLength: 1, | ||
additionalProperties: false | ||
} | ||
additionalProperties: false, | ||
}, | ||
], | ||
type: "problem" | ||
type: "problem", | ||
}, | ||
@@ -118,9 +118,9 @@ create(context) { | ||
node: node, | ||
message: `Avoid setting unnecessary attributes/properties on <Host>: ${unauthorizedAttributes.join(", ")}` | ||
message: `Avoid setting unnecessary attributes/properties on <Host>: ${unauthorizedAttributes.join(", ")}`, | ||
}); | ||
} | ||
} | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; | ||
@@ -168,6 +168,6 @@ | ||
category: "Best practices", | ||
recommended: true | ||
recommended: true, | ||
}, | ||
schema: [], | ||
type: "problem" | ||
type: "problem", | ||
}, | ||
@@ -186,3 +186,3 @@ create(context) { | ||
node, | ||
message: "Emitter not typed as `EventEmitter<CustomEventDetailsType>`" | ||
message: "Emitter not typed as `EventEmitter<CustomEventDetailsType>`", | ||
}); | ||
@@ -195,9 +195,9 @@ return; | ||
node, | ||
message: "EventEmitter is not typed and will cause its detail object to be typed as `any`" | ||
message: "EventEmitter is not typed and will cause its detail object to be typed as `any`", | ||
}); | ||
} | ||
} | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; | ||
@@ -211,6 +211,6 @@ | ||
category: "Possible Errors", | ||
recommended: false | ||
recommended: false, | ||
}, | ||
schema: [], | ||
type: "problem" | ||
type: "problem", | ||
}, | ||
@@ -228,9 +228,9 @@ create(context) { | ||
node: node.key, | ||
message: `Boolean properties decorated with @Prop() should not be initialized to true` | ||
message: `Boolean properties decorated with @Prop() should not be initialized to true`, | ||
}); | ||
} | ||
} | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; | ||
@@ -285,3 +285,3 @@ | ||
base, | ||
recommended | ||
recommended, | ||
}; | ||
@@ -288,0 +288,0 @@ |
@@ -13,2 +13,2 @@ # Licensing | ||
email: contracts@esri.com | ||
email: <contracts@esri.com> |
{ | ||
"name": "@esri/eslint-plugin-calcite-components", | ||
"version": "0.2.3-next.6", | ||
"version": "0.2.3", | ||
"description": "ESLint rules for @esri/calcite-components", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "7f7f52fca966dace7bdb298bbd50e6f9cf099368" | ||
"gitHead": "023e73223d6036a6e0af38dce35f90e9d41e5a5e" | ||
} |
14039