Require form elements to have a method attribute.
Form elements should explicitly specify the HTTP method they use. This improves code clarity and helps catch potential issues.
This rule forbids the following:
This rule allows the following:
allowedMethods(default:['POST', 'GET', 'DIALOG']) - Array of allowed form method values
// .eslintrc.js
module.exports = {
rules: {
'ember/template-require-form-method': [
'error',
{
allowedMethods: ['POST', 'GET'],
},
],
},
};