Skip to content

Commit

Permalink
Add reproduction of error Expected an assignment or function call and…
Browse files Browse the repository at this point in the history
… instead saw an expression no-unused-expressions
  • Loading branch information
amk221 committed Dec 20, 2023
1 parent 13ab926 commit ff4504e
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 399 deletions.
17 changes: 11 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ module.exports = {
},
},
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:prettier/recommended',
],
extends: ['eslint:recommended', 'plugin:ember/recommended'],
env: {
browser: true,
},
rules: {},
rules: {
'no-unused-expressions': [
'error',
{
allowShortCircuit: true,
allowTernary: true,
allowTaggedTemplates: true,
},
],
},
overrides: [
// node files
{
Expand Down
3 changes: 3 additions & 0 deletions app/components/my-component.gjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
Hello World
</template>
8 changes: 1 addition & 7 deletions app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
{{page-title "Example"}}

{{! The following component displays Ember's default welcome message. }}
<WelcomePage />
{{! Feel free to remove this! }}

{{outlet}}
<MyComponent />
Loading

0 comments on commit ff4504e

Please sign in to comment.