Skip to content

Commit daf871b

Browse files
authored
Merge pull request #375 from adopted-ember-addons/vanilla-prettier
Vanilla Prettier Setup
2 parents 1438459 + f7ae53f commit daf871b

File tree

17 files changed

+9475
-5122
lines changed

17 files changed

+9475
-5122
lines changed

.prettierrc.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
'use strict';
22

33
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
45
overrides: [
56
{
6-
files: '*.{cjs,mjs,js,ts}',
7+
files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}',
78
options: {
89
singleQuote: true,
10+
templateSingleQuote: false,
911
},
1012
},
1113
],

.stylelintignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.stylelintrc.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 62 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,49 @@
22

33
## Release (2025-03-31)
44

5-
* ember-changeset-validations 4.2.0 (minor)
5+
- ember-changeset-validations 4.2.0 (minor)
66

77
#### :rocket: Enhancement
8-
* `ember-changeset-validations`
9-
* [#368](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/368) Bump validated-changeset to 1.4.1 ([@SergeAstapov](https://github.com/SergeAstapov))
8+
9+
- `ember-changeset-validations`
10+
- [#368](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/368) Bump validated-changeset to 1.4.1 ([@SergeAstapov](https://github.com/SergeAstapov))
1011

1112
#### :house: Internal
12-
* `ember-changeset-validations`
13-
* [#369](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/369) Bump pnpm to 10.7.0 ([@SergeAstapov](https://github.com/SergeAstapov))
13+
14+
- `ember-changeset-validations`
15+
- [#369](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/369) Bump pnpm to 10.7.0 ([@SergeAstapov](https://github.com/SergeAstapov))
1416

1517
#### Committers: 1
18+
1619
- Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))
1720

1821
## Release (2025-03-24)
1922

20-
* ember-changeset-validations 4.1.2 (patch)
23+
- ember-changeset-validations 4.1.2 (patch)
2124

2225
#### :bug: Bug Fix
23-
* `ember-changeset-validations`
24-
* [#359](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/359) Declare peer dependency on @ember/string for compatibility with Ember >= 5 ([@jelhan](https://github.com/jelhan))
26+
27+
- `ember-changeset-validations`
28+
- [#359](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/359) Declare peer dependency on @ember/string for compatibility with Ember >= 5 ([@jelhan](https://github.com/jelhan))
2529

2630
#### :memo: Documentation
27-
* `ember-changeset-validations`
28-
* [#352](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/352) doc(readme): fixed small typo ([@c0rydoras](https://github.com/c0rydoras))
31+
32+
- `ember-changeset-validations`
33+
- [#352](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/352) doc(readme): fixed small typo ([@c0rydoras](https://github.com/c0rydoras))
2934

3035
#### :house: Internal
31-
* `ember-changeset-validations`
32-
* [#367](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/367) Update release-plan and setup ([@SergeAstapov](https://github.com/SergeAstapov))
33-
* [#364](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/364) Switch from npm to pnpm ([@SergeAstapov](https://github.com/SergeAstapov))
34-
* [#362](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/362) Sync with latest addon blueprint ([@SergeAstapov](https://github.com/SergeAstapov))
35-
* [#363](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/363) Setup ember-template-lint and fix errors ([@SergeAstapov](https://github.com/SergeAstapov))
36-
* [#361](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/361) Update ESLint to v9 ([@SergeAstapov](https://github.com/SergeAstapov))
37-
* [#360](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/360) Bump prettier to v3 and add trailing commas ([@SergeAstapov](https://github.com/SergeAstapov))
38-
* [#356](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/356) Setup release-plan ([@SergeAstapov](https://github.com/SergeAstapov))
36+
37+
- `ember-changeset-validations`
38+
- [#367](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/367) Update release-plan and setup ([@SergeAstapov](https://github.com/SergeAstapov))
39+
- [#364](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/364) Switch from npm to pnpm ([@SergeAstapov](https://github.com/SergeAstapov))
40+
- [#362](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/362) Sync with latest addon blueprint ([@SergeAstapov](https://github.com/SergeAstapov))
41+
- [#363](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/363) Setup ember-template-lint and fix errors ([@SergeAstapov](https://github.com/SergeAstapov))
42+
- [#361](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/361) Update ESLint to v9 ([@SergeAstapov](https://github.com/SergeAstapov))
43+
- [#360](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/360) Bump prettier to v3 and add trailing commas ([@SergeAstapov](https://github.com/SergeAstapov))
44+
- [#356](https://github.com/adopted-ember-addons/ember-changeset-validations/pull/356) Setup release-plan ([@SergeAstapov](https://github.com/SergeAstapov))
3945

4046
#### Committers: 3
47+
4148
- Arthur ([@c0rydoras](https://github.com/c0rydoras))
4249
- Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
4350
- Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))
@@ -51,83 +58,98 @@ Update ember-changeset 4.1.0
5158
## v4.0.0-beta.1 (2021-10-27)
5259

5360
#### :boom: Breaking Change
54-
* [#326](https://github.com/poteto/ember-changeset-validations/pull/326) Breaking: Remove changeset template helper re-export ([@SergeAstapov](https://github.com/SergeAstapov))
61+
62+
- [#326](https://github.com/poteto/ember-changeset-validations/pull/326) Breaking: Remove changeset template helper re-export ([@SergeAstapov](https://github.com/SergeAstapov))
5563

5664
#### :rocket: Enhancement
57-
* [#326](https://github.com/poteto/ember-changeset-validations/pull/326) Breaking: Remove changeset template helper re-export ([@SergeAstapov](https://github.com/SergeAstapov))
65+
66+
- [#326](https://github.com/poteto/ember-changeset-validations/pull/326) Breaking: Remove changeset template helper re-export ([@SergeAstapov](https://github.com/SergeAstapov))
5867

5968
#### Committers: 1
60-
- Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))
6169

70+
- Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))
6271

6372
## v4.0.0-beta.0 (2021-10-27)
6473

6574
#### :boom: Breaking Change
66-
* [#324](https://github.com/poteto/ember-changeset-validations/pull/324) Breaking: Upgrade ember-auto-import to v2 and move it to dependencies ([@SergeAstapov](https://github.com/SergeAstapov))
67-
* [#321](https://github.com/poteto/ember-changeset-validations/pull/321) Breaking: Drop Node.js v10 support ([@SergeAstapov](https://github.com/SergeAstapov))
75+
76+
- [#324](https://github.com/poteto/ember-changeset-validations/pull/324) Breaking: Upgrade ember-auto-import to v2 and move it to dependencies ([@SergeAstapov](https://github.com/SergeAstapov))
77+
- [#321](https://github.com/poteto/ember-changeset-validations/pull/321) Breaking: Drop Node.js v10 support ([@SergeAstapov](https://github.com/SergeAstapov))
6878

6979
#### :rocket: Enhancement
70-
* [#327](https://github.com/poteto/ember-changeset-validations/pull/327) Allow v0.3, v0.4 and v0.5 of ember-get-config ([@SergeAstapov](https://github.com/SergeAstapov))
71-
* [#325](https://github.com/poteto/ember-changeset-validations/pull/325) Run ember-cli-update to v3.28.3 and enable Ember v4/embroider scenarios ([@SergeAstapov](https://github.com/SergeAstapov))
72-
* [#323](https://github.com/poteto/ember-changeset-validations/pull/323) Internal: Update eslint-plugin-ember, fix lint, run blueprint tests in CI ([@SergeAstapov](https://github.com/SergeAstapov))
73-
* [#322](https://github.com/poteto/ember-changeset-validations/pull/322) Internal: Update ember-template-lint and fix lint issues ([@SergeAstapov](https://github.com/SergeAstapov))
74-
* [#320](https://github.com/poteto/ember-changeset-validations/pull/320) Internal: Upgrade eslint-plugin-qunit to v7 ([@SergeAstapov](https://github.com/SergeAstapov))
80+
81+
- [#327](https://github.com/poteto/ember-changeset-validations/pull/327) Allow v0.3, v0.4 and v0.5 of ember-get-config ([@SergeAstapov](https://github.com/SergeAstapov))
82+
- [#325](https://github.com/poteto/ember-changeset-validations/pull/325) Run ember-cli-update to v3.28.3 and enable Ember v4/embroider scenarios ([@SergeAstapov](https://github.com/SergeAstapov))
83+
- [#323](https://github.com/poteto/ember-changeset-validations/pull/323) Internal: Update eslint-plugin-ember, fix lint, run blueprint tests in CI ([@SergeAstapov](https://github.com/SergeAstapov))
84+
- [#322](https://github.com/poteto/ember-changeset-validations/pull/322) Internal: Update ember-template-lint and fix lint issues ([@SergeAstapov](https://github.com/SergeAstapov))
85+
- [#320](https://github.com/poteto/ember-changeset-validations/pull/320) Internal: Upgrade eslint-plugin-qunit to v7 ([@SergeAstapov](https://github.com/SergeAstapov))
7586

7687
#### Committers: 2
88+
7789
- Scott Newcomer ([@snewcomer](https://github.com/snewcomer))
7890
- Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))
7991

80-
8192
## v3.15.2 (2021-07-20)
8293

8394
#### :bug: Bug Fix
84-
* [#305](https://github.com/poteto/ember-changeset-validations/pull/305) fix(presence on): allow for nested keys to be used in `validatePresence` -> `on` ([@velrest](https://github.com/velrest))
95+
96+
- [#305](https://github.com/poteto/ember-changeset-validations/pull/305) fix(presence on): allow for nested keys to be used in `validatePresence` -> `on` ([@velrest](https://github.com/velrest))
8597

8698
#### Committers: 2
99+
87100
- Jonas Cosandey ([@velrest](https://github.com/velrest))
88101
- Scott Newcomer ([@snewcomer](https://github.com/snewcomer))
89102

90-
91103
## v3.15.1 (2021-07-15)
92104

93105
#### :bug: Bug Fix
94-
* [#312](https://github.com/poteto/ember-changeset-validations/pull/312) Bugfix: validate on render without backtracking Ember assertion ([@snewcomer](https://github.com/snewcomer))
106+
107+
- [#312](https://github.com/poteto/ember-changeset-validations/pull/312) Bugfix: validate on render without backtracking Ember assertion ([@snewcomer](https://github.com/snewcomer))
95108
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.14.8...v3.15.1)
96109

97110
#### Committers: 1
111+
98112
- Scott Newcomer ([@snewcomer](https://github.com/snewcomer))
99113

100114
## [3.14.8](https://github.com/poteto/ember-changeset-validations/tree/v3.14.8) (2021-07-08)
115+
101116
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.14.7...v3.14.8)
102117

103-
Bump ember-validators to 4.0.0. This was a major breaking change so ensure your app does not accidentally bump to ember-validators 4.0.0.
118+
Bump ember-validators to 4.0.0. This was a major breaking change so ensure your app does not accidentally bump to ember-validators 4.0.0.
104119

105120
https://github.com/poteto/ember-changeset-validations/pull/308
106121

107122
## [3.14.7](https://github.com/poteto/ember-changeset-validations/tree/v3.14.7) (2021-06-07)
123+
108124
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.14.5...v3.14.7)
109125

110126
## [3.14.4](https://github.com/poteto/ember-changeset-validations/tree/v3.14.4) (2021-05-21)
127+
111128
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.11.0...v3.14.4)
112129

113130
- Embroider support
114131
- Various validated-changeset improvements and bugfixes
115132

116133
## [3.11.0](https://github.com/poteto/ember-changeset-validations/tree/v3.11.0) (2021-01-30)
134+
117135
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.10.3...v3.11.0)
118136

119137
- Fix cyclical bug with ember data models
120138

121139
## [3.10.2](https://github.com/poteto/ember-changeset-validations/tree/v3.10.2) (2020-12-05)
140+
122141
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.10.1...v3.10.2)
123142

124143
## [3.10.1](https://github.com/poteto/ember-changeset-validations/tree/v3.10.1) (2020-12-05)
144+
125145
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.4.0...v3.10.1)
126146

127147
## [3.10.1](https://github.com/poteto/ember-changeset-validations/tree/v3.10.1) (2020-12-05)
148+
128149
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.4.0...v3.10.1)
129150

130151
## [3.4.0](https://github.com/poteto/ember-changeset-validations/tree/v3.4.0) (2020-05-26)
152+
131153
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.2.0...v3.4.0)
132154

133155
- Implement recursive proxy solution in e-c [#249](https://github.com/poteto/ember-changeset-validations/pull/249)
@@ -136,39 +158,45 @@ https://github.com/poteto/ember-changeset-validations/pull/308
136158
- Use validated-changeset lookup [#243](https://github.com/poteto/ember-changeset-validations/pull/243)
137159

138160
## [3.2.0](https://github.com/poteto/ember-changeset-validations/tree/v3.2.0) (2020-04-25)
161+
139162
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.1.1...v3.2.0)
140163

141164
- Ensure validation for single results returns primitive instead of array [#241](https://github.com/poteto/ember-changeset-validations/pull/241)
142165

143166
## [3.0.0](https://github.com/poteto/ember-changeset-validations/tree/v3.0.0) (2020-02-02)
167+
144168
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v3.0.0-beta.0...v3.0.0)
145169

146170
- Supports only Ember 3.13 and above. No breaking changes other than ember-source >= 3.13 and >= Node 10
147171
- Add Date validator [#218](https://github.com/poteto/ember-changeset-validations/pull/218)
148172
- Minimum Node 10 [#212](https://github.com/poteto/ember-changeset-validations/pull/212)
149173

150174
## [3.0.0-beta](https://github.com/poteto/ember-changeset-validations/tree/v3.0.0-beta.0) (2019-11-27)
175+
151176
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v2.1.2...v3.0.0-beta.0)
152177

153178
- [MAJOR]: 3.0.0 beta [#205](https://github.com/poteto/ember-changeset-validations/pull/205)
154179

155180
## [2.2.1](https://github.com/poteto/ember-changeset-validations/tree/v2.2.1) (2019-11-14)
181+
156182
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v2.2.0...v2.2.1)
157183

158184
- [BUGFIX]: handleMultipleValidations should work properly [#203](https://github.com/poteto/ember-changeset-validations/pull/203)
159185

160-
161186
## [2.2.0](https://github.com/poteto/ember-changeset-validations/tree/v2.2.0) (2019-11-04)
187+
162188
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v2.1.1...v2.2.0)
163189

164190
- [MINOR] - changeset helper reexport [#198](https://github.com/poteto/ember-changeset-validations/pull/198)
165191

166192
## [2.1.1](https://github.com/poteto/ember-changeset-validations/tree/v2.1.1) (2019-11-03)
193+
167194
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v2.0.0...v2.1.0)
168195

169196
- [MINOR] - changeset helper reexport [#199](https://github.com/poteto/ember-changeset-validations/pull/199)
170197

171198
## [2.1.0](https://github.com/poteto/ember-changeset-validations/tree/v2.1.0) (2019-02-25)
199+
172200
[Full Changelog](https://github.com/poteto/ember-changeset-validations/compare/v2.0.0...v2.1.0)
173201

174202
- Add `on` option for validatePresence [#191](https://github.com/poteto/ember-changeset-validations/pull/191)

CODE_OF_CONDUCT.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities

CONTRIBUTING.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Pull requests correcting spelling or grammar mistakes are always welcome.
1313

1414
Please try to answer at least the following questions when reporting a bug:
1515

16-
- Which version of the project did you use when you noticed the bug?
17-
- How do you reproduce the error condition?
18-
- What happened that you think is a bug?
19-
- What should it do instead?
16+
- Which version of the project did you use when you noticed the bug?
17+
- How do you reproduce the error condition?
18+
- What happened that you think is a bug?
19+
- What should it do instead?
2020

2121
It would really help the maintainers if you could provide a reduced test case
2222
that reproduces the error condition.
@@ -27,17 +27,18 @@ Please provide some thoughful commentary and code samples on what this feature
2727
should do and why it should be added (your use case). The minimal questions you
2828
should answer when submitting a feature request should be:
2929

30-
- What will it allow you to do that you can't do today?
31-
- Why do you need this feature and how will it benefit other users?
32-
- Are there any drawbacks to this feature?
30+
- What will it allow you to do that you can't do today?
31+
- Why do you need this feature and how will it benefit other users?
32+
- Are there any drawbacks to this feature?
3333

3434
## Submitting a pull-request?
3535

3636
Here are some things that will increase the chance that your pull-request will
3737
get accepted:
38-
- Did you confirm this fix/feature is something that is needed?
39-
- Did you write tests, preferably in a test driven style?
40-
- Did you add documentation for the changes you made?
38+
39+
- Did you confirm this fix/feature is something that is needed?
40+
- Did you write tests, preferably in a test driven style?
41+
- Did you add documentation for the changes you made?
4142

4243
If your pull-request addresses an issue then please add the corresponding
4344
issue's number to the description of your pull-request.

0 commit comments

Comments
 (0)