- Install oxfmt with .oxfmtrc.json (maps Prettier config) - Install oxlint with oxlint.config.ts (TypeScript + React rules) - Replace admin ESLint with oxlint - Remove Prettier integration from server ESLint (keep ESLint for type checking) - Delete server .prettierrc and admin eslint.config.js
17 lines
318 B
TypeScript
17 lines
318 B
TypeScript
import type { OxlintConfig } from 'oxlint';
|
|
|
|
const config: OxlintConfig = {
|
|
plugins: ['typescript', 'react', 'import'],
|
|
rules: {
|
|
'typescript/no-explicit-any': 'off',
|
|
'typescript/no-non-null-assertion': 'warn',
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: '19.0.0',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|