Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier #56

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module.exports = {
sourceType: 'module'
},
plugins: [
'ember'
'ember',
'prettier'
],
extends: [
'eslint:recommended',
Expand All @@ -15,7 +16,8 @@ module.exports = {
browser: true
},
rules: {
'ember/closure-actions': 'warn'
'ember/closure-actions': 'warn',
'prettier/prettier': 2
},
overrides: [
// node files
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
npm-debug.log*
yarn-error.log
testem.log
*.swp

# ember-try
.node_modules.ember-try/
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 100
}

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ On iOS autoplay of videos is disabled by Apple to save your precious data. I hav
* `npm run lint:js`
* `npm run lint:js -- --fix`

You can format all scripts with `yarn prettier`

### Running tests

* `ember test` – Runs the test suite on the current Ember version
Expand Down
Loading