From ea127123969eb1225c2f0a229827a04faede7c2c Mon Sep 17 00:00:00 2001 From: MrChocolatine <47531779+MrChocolatine@users.noreply.github.com> Date: Fri, 12 Mar 2021 09:27:01 +0000 Subject: [PATCH] chore: update lint config of HBS files --- .template-lintrc.js | 51 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/.template-lintrc.js b/.template-lintrc.js index 4aab4bd..9497210 100644 --- a/.template-lintrc.js +++ b/.template-lintrc.js @@ -1,5 +1,54 @@ 'use strict' module.exports = { - extends: 'octane' + extends: [ + 'octane', + 'stylistic', + ], + + rules: { + 'attribute-indentation': { + 'indentation': 2, + 'open-invocation-max-len': 100, + }, + + 'inline-link-to': 'error', + + 'no-bare-strings': 'error', + + 'no-class-bindings': 'error', + + 'no-element-event-actions': 'error', + + 'no-link-to-tagname': 'error', + + 'no-model-argument-in-route-templates': 'error', + + 'no-this-in-template-only-components': 'error', + + 'no-yield-to-default': 'error', + + 'require-form-method': 'warn', + }, + + overrides: [ + { + files: [ + '**/tests/dummy/**/*.hbs', + '**/tests/**/*.{js,ts}', + ], + rules: { + 'no-bare-strings': 'off', + }, + }, + { + files: [ + '**/tests/dummy/app/templates/**/*.hbs', + ], + + rules: { + 'no-this-in-template-only-components': 'off', + }, + }, + ], }