Skip to content

Commit a77257f

Browse files
committed
Don't test the autofix for simple-import-sort/imports
it's broken, see: ember-cli/eslint-plugin-ember#1896
1 parent 2fae658 commit a77257f

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Diff for: test/compare-test.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import process, { chdir, stdout } from "node:process";
55

66
const expectedEslintOutput = `
77
/path-prefix/my-component.gjs
8-
1:1 error Run autofix to sort these imports! simple-import-sort/imports
9-
16:4 error Expected property currentUser to come before property __GLIMMER_TEMPLATE sort-class-members/sort-class-members
8+
1:1 error Run autofix to sort these imports! simple-import-sort/imports
109
11-
2 problems (2 errors, 0 warnings)
12-
2 errors and 0 warnings potentially fixable with the \`--fix\` option.
10+
1 problem (1 error, 0 warnings)
11+
1 error and 0 warnings potentially fixable with the \`--fix\` option.
1312
`;
1413

1514
const expectedTemplateLintOutput = `

Diff for: test/formatted-my-component.gjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { inject as service } from "@ember/service";
33
import Component from "@glimmer/component";
44

55
export default class MyComponent extends Component {
6+
@service currentUser;
7+
68
<template>
79
{{#if (or @foo settings.bar)}}
810
<span class="boop">
@@ -12,6 +14,4 @@ export default class MyComponent extends Component {
1214
{{/if}}
1315
{{log "oops"}}
1416
</template>
15-
16-
@service currentUser;
1717
}

Diff for: test/my-component.gjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import Component from "@glimmer/component";
44

55

66
export default class MyComponent extends Component{
7+
@service currentUser;
8+
79
<template>
810
{{#if (or @foo settings.bar)}}
911
<span class='boop'>
@@ -12,6 +14,4 @@ export default class MyComponent extends Component{
1214
{{/if}}
1315
{{log "oops"}}
1416
</template>
15-
16-
@service currentUser;
1717
}

0 commit comments

Comments
 (0)