@ember/app-blueprint 7.1.0 → 7.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/plan-alpha-release.yml +1 -1
- package/.github/workflows/plan-beta-release.yml +1 -1
- package/.github/workflows/plan-stable-release.yml +1 -1
- package/.github/workflows/publish.yml +1 -1
- package/.release-plan.json +4 -8
- package/CHANGELOG.md +30 -4
- package/RELEASE.md +13 -6
- package/conditional-files/_ts_eslint.config.mjs +9 -1
- package/files/package.json +25 -25
- package/package.json +20 -12
- package/tests/fixtures/lint-ts/app/lint-test-gts.gts +15 -0
- package/tests/fixtures/lint-ts/app/lint-test-ts.ts +15 -0
- package/tests/lint.test.mjs +6 -0
|
@@ -48,7 +48,7 @@ jobs:
|
|
|
48
48
|
name: Create Prepare Release PR
|
|
49
49
|
with:
|
|
50
50
|
commit-message: "Prepare Release ${{ steps.explanation.outputs.new-version}} using 'release-plan'"
|
|
51
|
-
labels: internal
|
|
51
|
+
labels: "internal"
|
|
52
52
|
sign-commits: true
|
|
53
53
|
branch: release-preview
|
|
54
54
|
title: Prepare Alpha Release ${{ steps.explanation.outputs.new-version }}
|
|
@@ -48,7 +48,7 @@ jobs:
|
|
|
48
48
|
name: Create Prepare Release PR
|
|
49
49
|
with:
|
|
50
50
|
commit-message: "Prepare Release ${{ steps.explanation.outputs.new-version}} using 'release-plan'"
|
|
51
|
-
labels: internal
|
|
51
|
+
labels: "internal"
|
|
52
52
|
sign-commits: true
|
|
53
53
|
branch: release-preview-beta
|
|
54
54
|
title: Prepare Beta Release ${{ steps.explanation.outputs.new-version }}
|
|
@@ -48,7 +48,7 @@ jobs:
|
|
|
48
48
|
name: Create Prepare Release PR
|
|
49
49
|
with:
|
|
50
50
|
commit-message: "Prepare Release ${{ steps.explanation.outputs.new-version}} using 'release-plan'"
|
|
51
|
-
labels: internal
|
|
51
|
+
labels: "internal"
|
|
52
52
|
sign-commits: true
|
|
53
53
|
branch: release-preview-stable
|
|
54
54
|
title: Prepare Stable Release ${{ steps.explanation.outputs.new-version }}
|
package/.release-plan.json
CHANGED
|
@@ -2,18 +2,14 @@
|
|
|
2
2
|
"solution": {
|
|
3
3
|
"@ember/app-blueprint": {
|
|
4
4
|
"impact": "minor",
|
|
5
|
-
"oldVersion": "7.0.1",
|
|
6
|
-
"newVersion": "7.
|
|
7
|
-
"tagName": "
|
|
5
|
+
"oldVersion": "7.2.0-alpha.1",
|
|
6
|
+
"newVersion": "7.2.0-alpha.2",
|
|
7
|
+
"tagName": "alpha",
|
|
8
8
|
"constraints": [
|
|
9
9
|
{
|
|
10
10
|
"impact": "minor",
|
|
11
11
|
"reason": "Appears in changelog section :rocket: Enhancement"
|
|
12
12
|
},
|
|
13
|
-
{
|
|
14
|
-
"impact": "patch",
|
|
15
|
-
"reason": "Appears in changelog section :bug: Bug Fix"
|
|
16
|
-
},
|
|
17
13
|
{
|
|
18
14
|
"impact": "patch",
|
|
19
15
|
"reason": "Appears in changelog section :house: Internal"
|
|
@@ -22,5 +18,5 @@
|
|
|
22
18
|
"pkgJSONPath": "./package.json"
|
|
23
19
|
}
|
|
24
20
|
},
|
|
25
|
-
"description": "## Release (2026-06-30)\n\n* @ember/app-blueprint 7.
|
|
21
|
+
"description": "## Release (2026-06-30)\n\n* @ember/app-blueprint 7.2.0-alpha.2 (minor)\n\n#### :rocket: Enhancement\n* `@ember/app-blueprint`\n * [#147](https://github.com/ember-cli/ember-app-blueprint/pull/147) Apply `typescript-eslint`'s recommended config to gts files ([@bendemboski](https://github.com/bendemboski))\n\n#### :house: Internal\n* `@ember/app-blueprint`\n * [#291](https://github.com/ember-cli/ember-app-blueprint/pull/291) update release-plan ([@mansona](https://github.com/mansona))\n * [#281](https://github.com/ember-cli/ember-app-blueprint/pull/281) Update RELEASE.md ([@mansona](https://github.com/mansona))\n\n#### Committers: 2\n- Ben Demboski ([@bendemboski](https://github.com/bendemboski))\n- Chris Manson ([@mansona](https://github.com/mansona))\n"
|
|
26
22
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
## Release (2026-06-30)
|
|
4
4
|
|
|
5
|
-
* @ember/app-blueprint 7.
|
|
5
|
+
* @ember/app-blueprint 7.2.0-alpha.2 (minor)
|
|
6
6
|
|
|
7
7
|
#### :rocket: Enhancement
|
|
8
8
|
* `@ember/app-blueprint`
|
|
9
|
-
* [#
|
|
9
|
+
* [#147](https://github.com/ember-cli/ember-app-blueprint/pull/147) Apply `typescript-eslint`'s recommended config to gts files ([@bendemboski](https://github.com/bendemboski))
|
|
10
|
+
|
|
11
|
+
#### :house: Internal
|
|
12
|
+
* `@ember/app-blueprint`
|
|
13
|
+
* [#291](https://github.com/ember-cli/ember-app-blueprint/pull/291) update release-plan ([@mansona](https://github.com/mansona))
|
|
14
|
+
* [#281](https://github.com/ember-cli/ember-app-blueprint/pull/281) Update RELEASE.md ([@mansona](https://github.com/mansona))
|
|
15
|
+
|
|
16
|
+
#### Committers: 2
|
|
17
|
+
- Ben Demboski ([@bendemboski](https://github.com/bendemboski))
|
|
18
|
+
- Chris Manson ([@mansona](https://github.com/mansona))
|
|
19
|
+
|
|
20
|
+
## Release (2026-05-21)
|
|
21
|
+
|
|
22
|
+
* @ember/app-blueprint 7.2.0-alpha.1 (minor)
|
|
23
|
+
|
|
24
|
+
#### :rocket: Enhancement
|
|
25
|
+
* `@ember/app-blueprint`
|
|
26
|
+
* [#288](https://github.com/ember-cli/ember-app-blueprint/pull/288) Prepare 7.2 Alpha ([@mansona](https://github.com/mansona))
|
|
27
|
+
|
|
28
|
+
#### Committers: 1
|
|
29
|
+
- Chris Manson ([@mansona](https://github.com/mansona))
|
|
30
|
+
|
|
31
|
+
## Release (2026-05-20)
|
|
32
|
+
|
|
33
|
+
* @ember/app-blueprint 7.1.0-beta.1 (minor)
|
|
34
|
+
|
|
35
|
+
#### :rocket: Enhancement
|
|
36
|
+
* `@ember/app-blueprint`
|
|
37
|
+
* [#286](https://github.com/ember-cli/ember-app-blueprint/pull/286) Prepare Beta Release ([@mansona](https://github.com/mansona))
|
|
10
38
|
* [#266](https://github.com/ember-cli/ember-app-blueprint/pull/266) remove chalk in favour of native styleText ([@mansona](https://github.com/mansona))
|
|
11
39
|
* [#267](https://github.com/ember-cli/ember-app-blueprint/pull/267) update walk-sync to v4 ([@mansona](https://github.com/mansona))
|
|
12
40
|
* [#260](https://github.com/ember-cli/ember-app-blueprint/pull/260) update stylelint to v17 ([@mansona](https://github.com/mansona))
|
|
@@ -22,8 +50,6 @@
|
|
|
22
50
|
|
|
23
51
|
#### :house: Internal
|
|
24
52
|
* `@ember/app-blueprint`
|
|
25
|
-
* [#298](https://github.com/ember-cli/ember-app-blueprint/pull/298) fix plan release for beta and stable ([@mansona](https://github.com/mansona))
|
|
26
|
-
* [#297](https://github.com/ember-cli/ember-app-blueprint/pull/297) fix release-plan plan CI ([@mansona](https://github.com/mansona))
|
|
27
53
|
* [#253](https://github.com/ember-cli/ember-app-blueprint/pull/253) Update RELEASE.md with notes from the latest release ([@mansona](https://github.com/mansona))
|
|
28
54
|
|
|
29
55
|
#### Committers: 2
|
package/RELEASE.md
CHANGED
|
@@ -46,21 +46,24 @@ You can use [this saved search](https://github.com/ember-cli/ember-app-blueprint
|
|
|
46
46
|
- **make sure to not update the CHANGELOG.md file** so as not to include the beta or alpha changelogs in the next release
|
|
47
47
|
- make sure to not update the version in the package.json during this step, this will be release-plan's job
|
|
48
48
|
- make sure to not add the `release-plan` config section to the package.json during this step. We are releasing a real release so we don't want to configure release-plan to do a pre-release.
|
|
49
|
+
- commit this merge
|
|
49
50
|
- Update blueprint dependencies to latest
|
|
50
51
|
|
|
51
52
|
```
|
|
52
|
-
pnpm dlx update-blueprint-deps --filter 'ember-source' --tag latest files/package.json
|
|
53
|
+
pnpm dlx update-blueprint-deps --filter 'ember-source' --tag latest package.json files/package.json
|
|
53
54
|
pnpm dlx update-blueprint-deps --filter '.*' package.json files/package.json
|
|
54
55
|
```
|
|
55
56
|
|
|
56
57
|
- commit this update `git commit -am "update blueprint dependencies to latest"`
|
|
57
|
-
- push and open a PR targeting `release` with a PR title like `
|
|
58
|
-
- mark this PR as an `enhancement` if it is a minor release
|
|
58
|
+
- push and open a PR targeting `release` with a PR title like `Promote Beta and update all dependencies for 6.4 release`
|
|
59
|
+
- mark this PR as an `enhancement` if it is a minor release, or `breaking` if it is a major release
|
|
59
60
|
- check that everything is ok (i.e. that CI has run correctly and that you have the changes you expect)
|
|
60
61
|
- merge branch
|
|
61
62
|
- check that the `Prepare Release` PR has been correctly opened by `release-plan`
|
|
63
|
+
- review the included PRs in the changelog and add `ignore` to things that shouldn't be there
|
|
64
|
+
- after adding any `ignore` labels, wait for the `Prepare Release` PR to be updated
|
|
62
65
|
- Merge the `Prepare Release` branch when you are ready to release
|
|
63
|
-
- Check the `
|
|
66
|
+
- Check the `Publish` GitHub action to make sure the release succeeded
|
|
64
67
|
|
|
65
68
|
### Release ember-cli and update that dependency
|
|
66
69
|
|
|
@@ -108,9 +111,10 @@ You can use [this saved search](https://github.com/ember-cli/ember-app-blueprint
|
|
|
108
111
|
pnpm dlx update-blueprint-deps --filter '.*' package.json files/package.json
|
|
109
112
|
```
|
|
110
113
|
|
|
114
|
+
- run `pnpm install` to install any updated packages
|
|
111
115
|
- commit this update `git commit -am "update blueprint dependencies to beta"`
|
|
112
116
|
- push and open a PR targeting `beta` with a PR title like `Prepare 6.5-beta`
|
|
113
|
-
- mark this PR as an `enchancement`
|
|
117
|
+
- mark this PR as an `enchancement`
|
|
114
118
|
- check that everything is ok i.e. CI passes
|
|
115
119
|
- merge the `merge-release` branch into `beta` in GitHub
|
|
116
120
|
- check that the `Prepare Beta Release` PR has been correctly opened by `release-plan`
|
|
@@ -141,7 +145,7 @@ You can use [this saved search](https://github.com/ember-cli/ember-app-blueprint
|
|
|
141
145
|
|
|
142
146
|
- commit this update `git commit -am "update blueprint dependencies to alpha"`
|
|
143
147
|
- push and open a PR targeting `main` with a PR title like `Prepare 6.6-alpha`
|
|
144
|
-
- mark this PR as an `enchancement`
|
|
148
|
+
- mark this PR as an `enchancement`
|
|
145
149
|
- check that everything is ok i.e. CI passes
|
|
146
150
|
- merge the `merge-beta` branch into `main` in GitHub
|
|
147
151
|
- check that the `Prepare Alpha Release` PR has been correctly opened by `release-plan`
|
|
@@ -183,3 +187,6 @@ If you want to change the content of the Changelog then you should update the PR
|
|
|
183
187
|
## Patch Releases
|
|
184
188
|
|
|
185
189
|
Now that we're using release-plan for all releases, patch releases have become super easy! Every time you merge a PR to any branch that is being released with `release-plan` a new `Prepare Release` PR will be created. When you merge this `Prepare Release` branch it will automatically release the new Patch version.
|
|
190
|
+
|
|
191
|
+
> [!NOTE]
|
|
192
|
+
> If you merge a patch into any branch other than main, you **must** merge all branches forward i.e. release -> beta -> main so that the change gets applied to all branches correctly. For example: if you update a dependency on the `release` branch, you should then create a branch from `beta` and merge `release` into that branch and open a PR with this change to target `beta`. The same should happen from `beta` to `main`.
|
|
@@ -83,7 +83,15 @@ export default defineConfig([
|
|
|
83
83
|
...globals.browser,
|
|
84
84
|
},
|
|
85
85
|
},
|
|
86
|
-
extends: [
|
|
86
|
+
extends: [
|
|
87
|
+
...ts.configs.recommendedTypeChecked,
|
|
88
|
+
// https://github.com/ember-cli/ember-addon-blueprint/issues/119
|
|
89
|
+
{
|
|
90
|
+
...ts.configs.eslintRecommended,
|
|
91
|
+
files: undefined,
|
|
92
|
+
},
|
|
93
|
+
ember.configs.gts,
|
|
94
|
+
],
|
|
87
95
|
},
|
|
88
96
|
{
|
|
89
97
|
...qunit.configs.recommended,
|
package/files/package.json
CHANGED
|
@@ -31,29 +31,29 @@
|
|
|
31
31
|
"./*": "./app/*"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/core": "^7.29.
|
|
35
|
-
"@babel/runtime": "^7.29.
|
|
36
|
-
"@babel/plugin-transform-runtime": "^7.29.
|
|
37
|
-
"@babel/plugin-transform-typescript": "^7.
|
|
38
|
-
"@babel/eslint-parser": "^7.
|
|
34
|
+
"@babel/core": "^7.29.0",
|
|
35
|
+
"@babel/runtime": "^7.29.2",
|
|
36
|
+
"@babel/plugin-transform-runtime": "^7.29.0<% if (typescript) { %>",
|
|
37
|
+
"@babel/plugin-transform-typescript": "^7.28.6<% } %>",
|
|
38
|
+
"@babel/eslint-parser": "^7.28.6<% if (typescript) { %>",
|
|
39
39
|
"@ember/app-tsconfig": "^2.0.0<% } %>",
|
|
40
40
|
"@ember/optional-features": "^3.0.0",
|
|
41
41
|
"@ember/string": "^4.0.1",
|
|
42
|
-
"@ember/test-helpers": "^5.4.
|
|
43
|
-
"@ember/test-waiters": "^4.1.
|
|
44
|
-
"@embroider/macros": "^1.20.
|
|
45
|
-
"@embroider/core": "^4.
|
|
46
|
-
"@embroider/vite": "^1.7.
|
|
47
|
-
"@embroider/compat": "^4.1.
|
|
42
|
+
"@ember/test-helpers": "^5.4.2",
|
|
43
|
+
"@ember/test-waiters": "^4.1.1",
|
|
44
|
+
"@embroider/macros": "^1.20.2",
|
|
45
|
+
"@embroider/core": "^4.4.7",
|
|
46
|
+
"@embroider/vite": "^1.7.2",
|
|
47
|
+
"@embroider/compat": "^4.1.18",
|
|
48
48
|
"@embroider/router": "^3.0.6",
|
|
49
49
|
"@embroider/config-meta-loader": "^1.0.0",
|
|
50
50
|
"@embroider/legacy-inspector-support": "^0.1.3",
|
|
51
51
|
"@eslint/js": "^9.39.4",
|
|
52
52
|
"@glimmer/component": "^2.1.1<% if (typescript) { %>",
|
|
53
|
-
"@glint/ember-tsc": "^1.
|
|
54
|
-
"@glint/template": "^1.7.
|
|
55
|
-
"@glint/tsserver-plugin": "^2.
|
|
56
|
-
"@rollup/plugin-babel": "^7.
|
|
53
|
+
"@glint/ember-tsc": "^1.5.0",
|
|
54
|
+
"@glint/template": "^1.7.7",
|
|
55
|
+
"@glint/tsserver-plugin": "^2.4.0<% } %>",
|
|
56
|
+
"@rollup/plugin-babel": "^7.0.0<% if (typescript) { %>",
|
|
57
57
|
"@types/qunit": "^2.19.14",
|
|
58
58
|
"@types/rsvp": "^4.0.9<% } %><% if (warpDrive) { %>",
|
|
59
59
|
"@warp-drive/core": "~5.8.2",
|
|
@@ -62,17 +62,17 @@
|
|
|
62
62
|
"@warp-drive/legacy": "~5.8.2",
|
|
63
63
|
"@warp-drive/utilities": "~5.8.2<% } %>",
|
|
64
64
|
"babel-plugin-ember-template-compilation": "^4.0.0",
|
|
65
|
-
"concurrently": "^9.2.
|
|
65
|
+
"concurrently": "^9.2.1",
|
|
66
66
|
"decorator-transforms": "^2.3.2",
|
|
67
|
-
"ember-cli": "~7.0.
|
|
67
|
+
"ember-cli": "~7.0.0",
|
|
68
68
|
"ember-cli-babel": "^8.3.1",
|
|
69
69
|
"ember-cli-deprecation-workflow": "^4.0.1",
|
|
70
70
|
"ember-load-initializers": "^3.0.1",
|
|
71
71
|
"ember-modifier": "^4.3.0",
|
|
72
72
|
"ember-page-title": "^9.0.3",
|
|
73
|
-
"ember-qunit": "^9.
|
|
73
|
+
"ember-qunit": "^9.0.4",
|
|
74
74
|
"ember-resolver": "^13.2.0",
|
|
75
|
-
"ember-source": "~7.
|
|
75
|
+
"ember-source": "~7.2.0-alpha.1",
|
|
76
76
|
"ember-template-lint": "^7.9.3<% if (welcome) { %>",
|
|
77
77
|
"ember-welcome-page": "^8.0.5<% } %>",
|
|
78
78
|
"eslint": "^9.39.4",
|
|
@@ -82,16 +82,16 @@
|
|
|
82
82
|
"eslint-plugin-qunit": "^8.2.6<% if (warpDrive) { %>",
|
|
83
83
|
"eslint-plugin-warp-drive": "^5.8.2<% } %>",
|
|
84
84
|
"globals": "^16.5.0",
|
|
85
|
-
"prettier": "^3.8.
|
|
85
|
+
"prettier": "^3.8.3",
|
|
86
86
|
"prettier-plugin-ember-template-tag": "^2.1.6",
|
|
87
|
-
"qunit": "^2.
|
|
87
|
+
"qunit": "^2.25.0",
|
|
88
88
|
"qunit-dom": "^3.5.1",
|
|
89
|
-
"stylelint": "^17.
|
|
89
|
+
"stylelint": "^17.11.0",
|
|
90
90
|
"stylelint-config-standard": "^40.0.0",
|
|
91
|
-
"testem": "^3.20.
|
|
91
|
+
"testem": "^3.20.0<% if (typescript) { %>",
|
|
92
92
|
"typescript": "^6.0.3",
|
|
93
|
-
"typescript-eslint": "^8.
|
|
94
|
-
"vite": "^8.
|
|
93
|
+
"typescript-eslint": "^8.59.3<% } %>",
|
|
94
|
+
"vite": "^8.0.12"
|
|
95
95
|
},
|
|
96
96
|
"engines": {
|
|
97
97
|
"node": ">= 20.19.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember/app-blueprint",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0-alpha.2",
|
|
4
4
|
"description": "Blueprint for next generation of Ember apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-blueprint"
|
|
@@ -16,34 +16,42 @@
|
|
|
16
16
|
"ejs": "^3.1.10",
|
|
17
17
|
"ember-cli-string-utils": "^1.1.0",
|
|
18
18
|
"lodash": "^4.18.1",
|
|
19
|
-
"sort-package-json": "^3.
|
|
20
|
-
"walk-sync": "^4.0.
|
|
19
|
+
"sort-package-json": "^3.6.1",
|
|
20
|
+
"walk-sync": "^4.0.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@eslint/js": "^9.39.4",
|
|
24
|
-
"concurrently": "^9.2.
|
|
25
|
-
"ember-cli": "^7.0.
|
|
24
|
+
"concurrently": "^9.2.1",
|
|
25
|
+
"ember-cli": "^7.0.0",
|
|
26
26
|
"eslint": "9.x",
|
|
27
27
|
"eslint-config-prettier": "^9.1.2",
|
|
28
28
|
"execa": "^9.6.1",
|
|
29
29
|
"fixturify": "^3.0.0",
|
|
30
30
|
"globals": "^15.15.0",
|
|
31
31
|
"jsonc-parser": "^3.3.1",
|
|
32
|
-
"prettier": "^3.8.
|
|
32
|
+
"prettier": "^3.8.3",
|
|
33
33
|
"prettier-plugin-ember-template-tag": "^2.1.6",
|
|
34
|
-
"release-plan": "^0.
|
|
34
|
+
"release-plan": "^0.18.0",
|
|
35
35
|
"strip-ansi": "^7.2.0",
|
|
36
36
|
"tmp-promise": "^3.0.3",
|
|
37
|
-
"vitest": "^4.1.
|
|
37
|
+
"vitest": "^4.1.6",
|
|
38
38
|
"vitest-matrix": "^0.2.0"
|
|
39
39
|
},
|
|
40
|
+
"release-plan": {
|
|
41
|
+
"semverIncrementAs": {
|
|
42
|
+
"minor": "prerelease",
|
|
43
|
+
"patch": "prerelease"
|
|
44
|
+
},
|
|
45
|
+
"semverIncrementTag": "alpha",
|
|
46
|
+
"publishTag": "alpha"
|
|
47
|
+
},
|
|
40
48
|
"scripts": {
|
|
49
|
+
"format": "prettier . --write",
|
|
41
50
|
"lint": "concurrently 'pnpm:lint:*(!fix)'",
|
|
42
|
-
"lint:fix": "pnpm lint:eslint && pnpm format",
|
|
43
51
|
"lint:eslint": "eslint .",
|
|
52
|
+
"lint:fix": "pnpm lint:eslint && pnpm format",
|
|
44
53
|
"lint:prettier": "prettier . --check",
|
|
45
|
-
"
|
|
46
|
-
"test": "vitest"
|
|
47
|
-
"new:app": "pnpm dlx ember-cli@latest new my-app --blueprint ."
|
|
54
|
+
"new:app": "pnpm dlx ember-cli@latest new my-app --blueprint .",
|
|
55
|
+
"test": "vitest"
|
|
48
56
|
}
|
|
49
57
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is used to ensure that `eslint.config.mjs` is properly configured
|
|
3
|
+
* to apply `typescript-eslint`'s recommended rules to `.gts` files. It ensures
|
|
4
|
+
* that:
|
|
5
|
+
*
|
|
6
|
+
* - `no-undef` is disabled (otherwise the undefined symbol would cause a
|
|
7
|
+
* linting error)
|
|
8
|
+
* - `@typescript-eslint/no-unsafe-return` is enabled (otherwise the
|
|
9
|
+
* `eslint-disable-next-line` comment would cause a linting error)
|
|
10
|
+
*/
|
|
11
|
+
export default function () {
|
|
12
|
+
// @ts-expect-error testing lint
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
14
|
+
return notDefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is used to ensure that `eslint.config.mjs` is properly configured
|
|
3
|
+
* to apply `typescript-eslint`'s recommended rules to `.ts` files. It ensures
|
|
4
|
+
* that:
|
|
5
|
+
*
|
|
6
|
+
* - `no-undef` is disabled (otherwise the undefined symbol would cause a
|
|
7
|
+
* linting error)
|
|
8
|
+
* - `@typescript-eslint/no-unsafe-return` is enabled (otherwise the
|
|
9
|
+
* `eslint-disable-next-line` comment would cause a linting error)
|
|
10
|
+
*/
|
|
11
|
+
export default function () {
|
|
12
|
+
// @ts-expect-error testing lint
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
14
|
+
return notDefined;
|
|
15
|
+
}
|
package/tests/lint.test.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { beforeAll, describe, it, expect } from 'vitest';
|
|
2
2
|
|
|
3
3
|
import { generateApp } from './helpers.mjs';
|
|
4
|
+
import fixturify from 'fixturify';
|
|
4
5
|
|
|
5
6
|
describe('linting & formatting', function () {
|
|
6
7
|
describe('JavaScript', function () {
|
|
@@ -39,6 +40,11 @@ describe('linting & formatting', function () {
|
|
|
39
40
|
flags: ['--typescript', '--pnpm'],
|
|
40
41
|
skipNpm: false,
|
|
41
42
|
});
|
|
43
|
+
|
|
44
|
+
fixturify.writeSync(
|
|
45
|
+
app.dir,
|
|
46
|
+
fixturify.readSync('./tests/fixtures/lint-ts'),
|
|
47
|
+
);
|
|
42
48
|
});
|
|
43
49
|
|
|
44
50
|
it('yields output without errors', async function (context) {
|