oxc-eslint-parser
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

oxc-eslint-parser

Installation

# npm
npm install --save-dev oxc-eslint-parser

# pnpm
pnpm add --save-dev oxc-eslint-parser

# yarn
yarn add --dev oxc-eslint-parser

Usage

// 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,
  },
];

License

This project is licensed under the MIT License - see the LICENSE file for details.

Readme

Keywords

none

Package Sidebar

Install

npm i oxc-eslint-parser

Version

0.0.0

License

MIT

Unpacked Size

6.04 kB

Total Files

7

Last publish

Collaborators

  • rel1cx