open-index/open-npm huggingface dataset:
npm package: @linteng/esbuild-loader
Description: esbuild-loader改良样式引入，实现babel-plugin-import按需引入样式效果
Author: tenglin
Latest version: 0.0.0

# @linteng/esbuild-loader

基于gogocode与esbuild做的tsx/jsx预处理器, 可替换babel-loader以加速构建。

## 开始

首先安装 `@linteng/esbuild-loader`:

```console
npm install @linteng/esbuild-loader --save-dev
```

or

```console
yarn add -D @linteng/esbuild-loader
```

or

```console
pnpm add -D @linteng/esbuild-loader
```

然后在 `webpack` 配置中增加loader

**webpack.config.js**


>```js
>  module.exports = {
>    module: {
>     rules: [
>        {
>          test: /\.[jt]sx?$/,
>          exclude: /node_modules/,
>          loader: '@linteng/esbuild-loader',
>           // 默认值
>          options: {
>             // target: 'es2015', // default, or 'es20XX', 'esnext'
>             // jsxFactory: 'React.createElement',
>             // jsxFragment: 'React.Fragment',
>             // loader: 'tsx',
>             // importOptions: {
>             //   libraryName: 'antd',
>             //   libraryDirectory: 'es',
>             //   style: 'less',
>             // }
>          }
>        },
>      ],
>    },
>  };
> ```
> | options.key | options.value	| 默认值 |
> | :---- | :---- | :---- |
> | target | 此配置项设置生成 JavaScript 代码的目标环境，[同esbuild Transform API的target](https://esbuild.github.io/api/#target) | es2015 |
> | jsxFactory | 编译为模板创建函数，[同esbuild Transform API的jsxFactory](https://esbuild.github.io/api/#jsx-factory) | React.createElement |
> | jsxFragment | [编译为JSX片段模板创建函数，同esbuild Transform API的jsxFragment](https://esbuild.github.io/api/#jsx-fragment) | React.Fragment |
> | loader | 该配置项改变了输入文件解析的方式。例如， js loader 将文件解析为 JavaScript， css loader 将文件解析为 CSS。[同esbuild Transform loader](https://esbuild.github.io/api/#loader) | tsx |
> | importOptions | {libraryName: string, libraryDirectory: string, style: string}, 同[babel-plugin-import](https://www.npmjs.com/package/babel-plugin-import) | {libraryName: 'antd', libraryDirectory: 'es', style: 'less'}|
> |其他 | 接收[esbuild Transform API](https://esbuild.github.io/api/#transform-api所有参数 |
npm package: @linter/core
Description: Lint all the things... with one command
Author: Simon Fridlund
Latest version: 1.0.0-beta.4

# @linter/core

[![Build status](https://travis-ci.org/linterjs/core.svg?branch=master)](https://travis-ci.org/linterjs/core)
[![Build status](https://ci.appveyor.com/api/projects/status/wk2n9yn57qf594e1?svg=true)](https://ci.appveyor.com/project/linterjs/core)
[![codecov](https://codecov.io/gh/linterjs/core/branch/master/graph/badge.svg)](https://codecov.io/gh/linterjs/core)
[![Maintainability](https://api.codeclimate.com/v1/badges/747c6f23ee4dfa61f522/maintainability)](https://codeclimate.com/github/linterjs/core/maintainability)
[![Known vulnerabilities](https://snyk.io/test/github/linterjs/core/badge.svg)](https://snyk.io/test/github/linterjs/core)
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.svg)](https://gitter.im/linterjs/general)

This is the core component of `@linter`. This is used by the cli,
editor integrations and linter providers.
npm package: @linterhub/schema
Description: JSON Schema definitions for linterhub
Author: linterhub
Latest version: 1.4.0

# @linterhub/schema [![travis][travis-shield]][travis-url] [![semantic][semantic-shield]][semantic-url] [![npm][npm-shield]][npm-url] [![github][github-shield]][github-url]

> JSON Schema definitions for linterhub

## Table of Contents

- [Background](#background)
- [Installation](#installation)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)

## Background

There are a lot of [linters][linter-url] of different types, distributed
in different ways and each may have specific runtime dependencies.
This repository contains a proposal of unified linter definition,
distribution and configuration formats (JSON Schema & JSON files).
Under the hood, the main idea is pretty similar to
[meta-package managers][meta-url] approach.

> More details in [doс][doc-url] or at [the catalog page][catalog-url].

## Installation

### NPM

Requirements:

- [Node.js][node-js] 8.3+
- [npm][npm] 5.3+

```bash
npm install @linterhub/schema --save-dev
```

### GitHub

All schemas and the source code are available for download
at [GitHub Releases][github-release-url] and
[GitHub pages][github-pages-url] as well.

## Usage

### JavaScript

Get Schema for `linter` definition and output it to console:

```javascript
const schema = require('@linterhub/schema');
console.log(schema.linter);
```

### JSON

Describe the linter capabilities and provide some extra info:
how to install it and how to execute it - [Step by Step guide][doc-url].

## Contribute

You may contribute in several ways like requesting new features,
adding tests, fixing bugs, improving documentation or examples.
Please check our [contributing guidelines][contributing].

## License

[MIT][license-url]

[travis-shield]: https://img.shields.io/travis/linterhub/schema/master.svg
[travis-url]: https://travis-ci.org/linterhub/schema/branches
[semantic-shield]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-url]: https://github.com/semantic-release/semantic-release
[npm-shield]: https://img.shields.io/npm/v/@linterhub/schema.svg
[npm-url]: https://www.npmjs.com/package/@linterhub/schema
[npm]: https://www.npmjs.com
[node-js]: https://nodejs.org
[github-shield]: https://img.shields.io/github/release/linterhub/schema.svg?label=github
[github-url]: https://github.com/linterhub/schema
[github-release-url]: https://github.com/linterhub/schema/releases
[github-pages-url]: https://github.com/linterhub/schema/tree/gh-pages
[schema-url]: http://json-schema.org/
[web-url]: https://schema.linterhub.com
[doc-url]: https://github.com/linterhub/schema/blob/develop/doc
[linter-url]: https://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis
[license-url]: https://github.com/linterhub/schema/blob/develop/LICENSE.md
[catalog-url]: https://github.com/linterhub/catalog
[meta-url]: https://en.wikipedia.org/wiki/List_of_software_package_management_systems#Meta_package_managers
[contributing]: https://github.com/linterhub/schema/blob/develop/.github/CONTRIBUTING.md
npm package: @linterly/cli
Description: A CLI tool to check code line counts
Latest version: 0.3.3

# @linterly/cli

A lightweight linter that checks code line counts. Set line limits per file and per directory to detect bloated code early.

## Installation

```bash
# Global
npm install -g @linterly/cli

# Project-local (recommended)
npm install -D @linterly/cli
```

Also available via Go:

```bash
go install github.com/ousiassllc/linterly/cmd/linterly@latest
```

## Quick Start

```bash
# Generate a config file
npx linterly init

# Check the current directory
npx linterly check

# Check a specific path
npx linterly check src/

# Output in JSON format
npx linterly check --format json

# Override config values with CLI flags
npx linterly check --max-lines-per-file 500 --count-mode code_only

# Run without a config file (uses defaults)
npx linterly check --max-lines-per-file 500 --warning-threshold 20

# Add ignore patterns via CLI
npx linterly check --ignore "vendor/**" --ignore "*.pb.go"

# Disable default excludes
npx linterly check --no-default-excludes
```

## Configuration

A config file is **optional**. Without one, Linterly runs with sensible defaults. You can override any setting via CLI flags.

Place a `.linterly.yml` in your project root:

```yaml
rules:
  max_lines_per_file: 300
  max_lines_per_directory: 2000
  warning_threshold: 10

count_mode: all       # all | code_only
language: en          # en | ja

ignore:
  - "vendor/**"
  - "*.pb.go"

default_excludes: true
```

CLI flags always take precedence over config file values (`CLI flags > config file > defaults`).

You can also create a `.linterlyignore` file (gitignore format) for exclusion patterns.

## Git Hooks Integration

### Husky + lint-staged

```json
{
  "lint-staged": {
    "*.{js,ts,go,py,rb}": ["linterly check"]
  }
}
```

### Lefthook

```yaml
pre-commit:
  commands:
    linterly:
      glob: "*.go"
      run: linterly check {staged_files}
```

## Supported Platforms

| Platform | Package |
|----------|---------|
| Linux x64 | `@linterly/linux-x64` |
| Linux arm64 | `@linterly/linux-arm64` |
| macOS x64 | `@linterly/darwin-x64` |
| macOS arm64 | `@linterly/darwin-arm64` |
| Windows x64 | `@linterly/win32-x64` |

Platform-specific packages are installed automatically via `optionalDependencies`.

## Links

- [GitHub](https://github.com/ousiassllc/linterly)
- [GitHub Releases](https://github.com/ousiassllc/linterly/releases)
- [Documentation](https://github.com/ousiassllc/linterly/tree/main/docs)

## License

MIT