Skip to content

Commit

Permalink
Merge pull request #373 from adopted-ember-addons/lint-cleanup
Browse files Browse the repository at this point in the history
re-enable all current lint rules
  • Loading branch information
ef4 committed Jan 17, 2022
2 parents cf7f288 + c385c98 commit 145aa18
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
5 changes: 1 addition & 4 deletions .template-lintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
module.exports = {
extends: 'octane',
rules: {
// temporarily disabling these because they were already failing
'no-implicit-this': 'off',
'no-curly-component-invocation': 'off',
'no-action': 'off',
'no-curly-component-invocation': { allow: ['utc'] },
},
};
5 changes: 1 addition & 4 deletions test-app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ module.exports = {
env: {
browser: true,
},
rules: {
// TODO: remove these
'ember/no-jquery': 0,
},
rules: {},
overrides: [
// node files
{
Expand Down
26 changes: 13 additions & 13 deletions test-app/app/templates/index.hbs
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
Locale:
<button type='button' {{action 'changeLocale' 'es'}}>ES</button>
<button type='button' {{action 'changeLocale' 'fr'}}>FR</button>
<button type='button' {{action 'changeLocale' 'en'}}>EN</button>
<button type='button' {{on 'click' (fn this.changeLocale 'es') }}>ES</button>
<button type='button' {{on 'click' (fn this.changeLocale 'fr') }}>FR</button>
<button type='button' {{on 'click' (fn this.changeLocale 'en') }}>EN</button>

<hr />
Default Format:
<button type='button' {{action 'changeDefaultFormat' 'LLLL'}}>LLLL</button>
<button type='button' {{on 'click' (fn this.changeDefaultFormat 'LLLL') }}>LLLL</button>
<button
type='button'
{{action 'changeDefaultFormat' 'DD.MM.YYYY'}}
{{on 'click' (fn this.changeDefaultFormat 'DD.MM.YYYY') }}
>DD.MM.YYYY</button>
<button type='button' {{action 'changeDefaultFormat' 'LL'}}>LL</button>
<button type='button' {{on 'click' (fn this.changeDefaultFormat 'LL') }}>LL</button>

<hr />

<h3>Moment</h3>

{{partials/moment}}
<Partials::Moment/>

<h3>Format</h3>

{{partials/format}}
<Partials::Format/>

<hr />

<h3>From Now</h3>

{{partials/from-now}}
<Partials::FromNow/>

<h3>To Now</h3>

{{partials/to-now}}
<Partials::ToNow/>

<hr />

<h3>Calendar</h3>

{{partials/calendar}}
<Partials::Calendar/>

<hr />

<h3>Duration</h3>

{{partials/duration}}
<Partials::Duration/>

<hr />

<h3>Difference</h3>

{{partials/diff}}
<Partials::Diff/>

0 comments on commit 145aa18

Please sign in to comment.