Skip to content

Commit 25f1d73

Browse files
committed
Upgrade XO
1 parent 22d4e81 commit 25f1d73

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"c8": "^9.1.0",
3232
"del": "^7.1.0",
3333
"typescript": "^5.4.5",
34-
"xo": "^0.58.0"
34+
"xo": "^1.1.0"
3535
},
3636
"c8": {
3737
"reporter": [
@@ -51,11 +51,5 @@
5151
]
5252
},
5353
"timeout": "60s"
54-
},
55-
"xo": {
56-
"ignores": [
57-
"test/broken-fixtures",
58-
"test/fixtures/**/compiled/**"
59-
]
6054
}
6155
}

test/protocol-ava-6.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,27 @@ test('main() resolvePossibleOutOfBandCompilationSources() .js but .ts not config
121121

122122
test('main() resolvePossibleOutOfBandCompilationSources() .cjs and .cjs and .cts configured', withProvider, (t, provider) => {
123123
const main = provider.main({config: {extensions: ['cjs', 'cts'], rewritePaths: {'src/': 'build/'}, compile: false}});
124-
t.deepEqual(main.resolvePossibleOutOfBandCompilationSources(path.join(projectDirectory, 'build/foo.cjs')), [path.join(projectDirectory, 'src/foo.cjs'), path.join(projectDirectory, 'src/foo.cts')]);
124+
t.deepEqual(main.resolvePossibleOutOfBandCompilationSources(path.join(projectDirectory, 'build/foo.cjs')), [
125+
path.join(projectDirectory, 'src/foo.cjs'),
126+
path.join(projectDirectory, 'src/foo.cts'),
127+
]);
125128
});
126129

127130
test('main() resolvePossibleOutOfBandCompilationSources() .mjs and .mjs and .mts configured', withProvider, (t, provider) => {
128131
const main = provider.main({config: {extensions: ['mjs', 'mts'], rewritePaths: {'src/': 'build/'}, compile: false}});
129-
t.deepEqual(main.resolvePossibleOutOfBandCompilationSources(path.join(projectDirectory, 'build/foo.mjs')), [path.join(projectDirectory, 'src/foo.mjs'), path.join(projectDirectory, 'src/foo.mts')]);
132+
t.deepEqual(main.resolvePossibleOutOfBandCompilationSources(path.join(projectDirectory, 'build/foo.mjs')), [
133+
path.join(projectDirectory, 'src/foo.mjs'),
134+
path.join(projectDirectory, 'src/foo.mts'),
135+
]);
130136
});
131137

132138
test('main() resolvePossibleOutOfBandCompilationSources() .js and .js, .ts and .tsx configured', withProvider, (t, provider) => {
133139
const main = provider.main({config: {extensions: ['js', 'ts', 'tsx'], rewritePaths: {'src/': 'build/'}, compile: false}});
134-
t.deepEqual(main.resolvePossibleOutOfBandCompilationSources(path.join(projectDirectory, 'build/foo.js')), [path.join(projectDirectory, 'src/foo.js'), path.join(projectDirectory, 'src/foo.ts'), path.join(projectDirectory, 'src/foo.tsx')]);
140+
t.deepEqual(main.resolvePossibleOutOfBandCompilationSources(path.join(projectDirectory, 'build/foo.js')), [
141+
path.join(projectDirectory, 'src/foo.js'),
142+
path.join(projectDirectory, 'src/foo.ts'),
143+
path.join(projectDirectory, 'src/foo.tsx'),
144+
]);
135145
});
136146

137147
test('main() resolvePossibleOutOfBandCompilationSources() returns the first possible path that exists', withProvider, (t, provider) => {

xo.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/** @type {import('xo').FlatXoConfig} */
2+
const xoConfig = [
3+
{
4+
ignores: [
5+
'test/broken-fixtures',
6+
'test/fixtures/**/compiled/**',
7+
],
8+
},
9+
];
10+
11+
export default xoConfig;

0 commit comments

Comments
 (0)