Migrate from ESLint to Oxlint and Oxfmt

This commit is contained in:
Alejandro Celaya
2026-07-26 09:12:18 +02:00
parent 2cf85a18b3
commit 54d4d9ebad
81 changed files with 2004 additions and 3790 deletions

24
oxlint.config.ts Normal file
View File

@@ -0,0 +1,24 @@
// @ts-expect-error This lib does not expose type definitions
import shlink from '@shlinkio/eslint-config-js-coding-standard/oxc/oxlint';
import { defineConfig } from 'oxlint';
export default defineConfig({
extends: [shlink],
rules: {
'typescript/no-floating-promises': 'off', // FIXME Enable this
},
overrides: [
{
files: ['./*.config.ts'],
rules: {
'eslint/no-restricted-exports': 'off',
},
},
{
files: ['**/*.test.*'],
rules: {
'typescript/unbound-method': 'off',
},
},
],
});