eslint-plugin-jsx-secure-form
Version:
Plugin that checks if you fields have spellcheck attribute set to false
31 lines (28 loc) • 488 B
JavaScript
const defaultParserOptions = {
ecmaVersion: 2018,
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
};
const mapper = ({
code,
errors,
options = [],
parserOptions = {},
settings,
}) => {
return {
code,
errors,
options,
parserOptions: {
...defaultParserOptions,
...parserOptions,
},
settings,
};
};
module.exports = {
testMapper: mapper
}