@es-exec/esbuild-plugin-eslint
v0.0.5
Published
An esbuild plugin to run a script after building a package.
Downloads
43
Readme
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)
],
};