# npm
npm install --save-dev oxc-eslint-parser
# pnpm
pnpm add --save-dev oxc-eslint-parser
# yarn
yarn add --dev oxc-eslint-parser
// eslint.config.js
// @ts-check
import eslintJs from "@eslint/js";
import eslintReact from "@eslint-react/eslint-plugin";
import oxcEslintParser from "ts-blank-eslint-parser";
import globals from "globals";
const GLOB_TS = ["**/*.ts", "**/*.tsx"];
export default [
{
files: GLOB_TS,
languageOptions: {
globals: {
...globals.browser,
},
parser: oxcEslintParser,
},
rules: {
...eslintJs.configs.recommended.rules,
},
},
{
files: GLOB_TS,
...eslintReact.configs.recommended,
},
];
This project is licensed under the MIT License - see the LICENSE file for details.