Skip to content

Commit 0e5bd83

Browse files
committed
Add regression test for empty braces rule conflict
Fixes xojs/xo#877
1 parent 7283524 commit 0e5bd83

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,12 @@ test('exported file globs include html and md', t => {
597597
t.is(allFilesGlob, '**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,svelte,astro,html,md}');
598598
});
599599

600+
test('empty braces do not conflict between curly-newline and empty-brace-spaces', async t => {
601+
const errors = await runEslint('console.log(() => {});\n', eslintConfigXo());
602+
t.false(hasRule(errors, '@stylistic/curly-newline'));
603+
t.false(hasRule(errors, 'unicorn/empty-brace-spaces'));
604+
});
605+
600606
test('non-typescript import failures are rethrown', async t => {
601607
const error = await t.throwsAsync(loadConfigWithoutTypeScript({
602608
typescriptSource: `

0 commit comments

Comments
 (0)