UNPKG

eslint-plugin-jsx-secure-form

Version:

Plugin that checks if you fields have spellcheck attribute set to false

15 lines (13 loc) 352 B
const ELEMENT_FORM_TYPE = "form"; const ELEMENT_INPUT_TYPE = "input"; const SPELLCHECK_PROPERTY = "spellcheck"; const TYPE_PROPERTY = "type"; // input types to skip const SKIP_TYPES = ["file", "image", "reset", "submit"]; module.exports = { ELEMENT_FORM_TYPE, ELEMENT_INPUT_TYPE, SPELLCHECK_PROPERTY, TYPE_PROPERTY, SKIP_TYPES, };