Skip to content

Commit 4e309db

Browse files
committed
style: apply oxfmt array-collapse autofixes
1 parent ab461fd commit 4e309db

2 files changed

Lines changed: 6 additions & 17 deletions

File tree

.config/oxlintrc.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3-
"plugins": [
4-
"typescript",
5-
"unicorn",
6-
"import"
7-
],
8-
"jsPlugins": [
9-
"./oxlint-plugin/index.mts"
10-
],
3+
"plugins": ["typescript", "unicorn", "import"],
4+
"jsPlugins": ["./oxlint-plugin/index.mts"],
115
"categories": {
126
"correctness": "error",
137
"suspicious": "error"
@@ -168,12 +162,7 @@
168162
}
169163
},
170164
{
171-
"files": [
172-
"**/*.ts",
173-
"**/*.tsx",
174-
"**/*.mts",
175-
"**/*.cts"
176-
],
165+
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
177166
"rules": {
178167
"eslint/no-unused-vars": "off"
179168
}

scripts/lint.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function filterLintable(files: string[]): string[] {
116116
const DOGFOOD_LINT_PATHS = ['.config/oxlint-plugin', 'template']
117117

118118
function runAll(): number {
119-
log('Formatting all files...')
119+
log('Formatting all files')
120120
// spawnSync with array args, no shell interpolation. Matches the
121121
// socket/prefer-spawn-over-execsync rule: shell-string execSync is
122122
// banned because every interpolated value is a potential injection
@@ -135,7 +135,7 @@ function runAll(): number {
135135
if (fmtRes.status !== 0) {
136136
return 1
137137
}
138-
log('Running oxlint on all files...')
138+
log('Running oxlint on all files')
139139
const oxlintArgs = ['exec', 'oxlint', '-c', '.config/oxlintrc.json']
140140
if (fix) {
141141
oxlintArgs.push('--fix')
@@ -160,7 +160,7 @@ function runAll(): number {
160160
// to opt in.
161161
if (process.env['LINT_DOGFOOD'] === '1') {
162162
if (!quiet) {
163-
logger.log('Running oxlint on wheelhouse-self dogfood paths...')
163+
logger.log('Running oxlint on wheelhouse-self dogfood paths')
164164
}
165165
for (let i = 0, { length } = DOGFOOD_LINT_PATHS; i < length; i += 1) {
166166
const dogfoodPath = DOGFOOD_LINT_PATHS[i]!

0 commit comments

Comments
 (0)