What version of Oxlint are you using?
1.57.0
What command did you run?
oxlint
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
import { defineConfig } from 'oxlint';
export default defineConfig({
env: {
node: true,
},
options: {
typeAware: true,
},
plugins: ['typescript'],
rules: {
'typescript/promise-function-async': 'error',
},
});
What happened?
Consider the following code:
export function myPromise(): Promise<string> {
return '1';
}
typescript/promise-function-async fix is adding async before the export:
async export function myPromise(): Promise<string> {
return '1';
}
What version of Oxlint are you using?
1.57.0
What command did you run?
oxlintWhat does your
.oxlintrc.json(oroxlint.config.ts) config file look like?What happened?
Consider the following code:
typescript/promise-function-async fix is adding
asyncbefore theexport: