Skip to content

Commit

Permalink
chore: update lint config of HBS files
Browse files Browse the repository at this point in the history
  • Loading branch information
MrChocolatine committed Mar 16, 2021
1 parent 823315e commit ea12712
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion .template-lintrc.js
Original file line number Diff line number Diff line change
@@ -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',
},
},
],
}

0 comments on commit ea12712

Please sign in to comment.