0.0.5 • Published 1 year ago

@es-exec/esbuild-plugin-eslint v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ESLint

A plugin to lint files during file resolution or all resolved (non node_module files) after the build finishes when the single flag is used.

Installation

npm

npm install @es-exec/esbuild-plugin-eslint

yarn

yarn add @es-exec/esbuild-plugin-eslint

Usage

import eslint from '@es-exec/esbuild-plugin-eslint';

/** @type import('@es-exec/esbuild-plugin-eslint').ESLintPluginOptions */
const options = {
    single: true, // Run one single lint on all  files outside of node_modules.
    eslintOptions: {
        ... // Any ESLint options.
    },
};

export default {
    ..., // Other esbuild config options.
    plugins: [
        eslint(options)
    ],
};