Skip to content

Commit

Permalink
Migrate to stand alone configuration files.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed May 26, 2020
1 parent cc4865d commit 1276199
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions text/0628-prettier.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,44 @@ The `.eslintrc.js` that is generated will be updated to add:

#### Prettier

A new `prettier` section will be added to the `package.json` file with the following contents:
A `.prettierrc.js` will be added with the following contents:

```json
{
"prettier": {
"singleQuote": true
}
}
```js
module.exports = {
singleQuote: true,
};
```

There is a [small number of configuration
options](https://prettier.io/docs/en/options.html) that can be used in this
file, but we are intentionally avoiding modifying the default values for things
that are not _nearly_ universally agreed on in the Ember ecosystem.

A `.prettierignore` will be added to match the `.eslintignore` contents:

```
# unconventional js
/blueprints/*/files/
/vendor/
# compiled output
/dist/
/tmp/
# dependencies
/bower_components/
/node_modules/
# misc
/coverage/
!.*
# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
```

#### Git

The `.gitignore` will be updated to add `.eslintcache` so that when using
Expand Down

1 comment on commit 1276199

@neojp
Copy link

@neojp neojp commented on 1276199 May 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Please sign in to comment.