mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-08-31 23:31:52 +00:00
Migrate from ESLint to Oxlint and Oxfmt
This commit is contained in:
24
oxlint.config.ts
Normal file
24
oxlint.config.ts
Normal 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',
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user