open-index/open-npm huggingface dataset:
npm package: @lintest/rules-cjconnect
Description: The integrated lint rules for CJConnect
Author: mornya
Latest version: 0.0.7

# @lintest/rules-cjconnect
![npm](https://img.shields.io/npm/v/@lintest/rules-cjconnect)
![license](https://img.shields.io/npm/l/@lintest/rules-cjconnect)

Copyright 2024. CJConnect. All rights reserved.

## About
The integrated lint rules for `CJConnect`<br>
Distributed to NPM registry on `@lintest` organization.

## License
```text
The MIT License (MIT)

Copyright 2024. CJConnect. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```
npm package: @lintest/rules-mornya
Description: The integrated lint rules for mornya
Author: mornya
Latest version: 0.0.40

# @lintest/rules-mornya
![npm](https://img.shields.io/npm/v/@lintest/rules-mornya)
![license](https://img.shields.io/npm/l/@lintest/rules-mornya)

Copyright 2024. mornya. All rights reserved.

## About
The integrated lint rules for `mornya`<br>
Distributed to NPM registry on `@lintest` organization.

## License
```text
The MIT License (MIT)

Copyright 2024. mornya. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```
npm package: @linthtml/gulp-linthtml
Description: A gulp plugin for processing files with LintHTML
Author: Benjamin JEGARD
Latest version: 0.7.0

# gulp-linthtml [![Build Status](https://travis-ci.org/linthtml/gulp-linthtml.svg)](https://travis-ci.org/linthtml/gulp-linthtml)

> A [gulp](https://gulpjs.com/) plugin for [LintHTML](https://github.com/linthtml/linthtml)

## Installation

[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).

```
npm install @linthtml/gulp-linthtml
```

## Usage

```javascript
const {src} = require('gulp');
const linthtml = require('@linthtml/gulp-linthtml');

function lintHTML() {
  return src("app/**/*.html")
    .pipe(linthtml())
    .pipe(linthtml.format())
    .pipe(linthtml.failOnError());
}

lintHTML.description = "Analyse all HTML files using linthtml";
exports.default = lintHTML;
```

## API

### linthtml()

*No explicit configuration.* A `.linthtmlrc.*` file may be resolved relative to the gulpfile.

### linthtml(options)

#### options.rules

Type: `Object`

Set of [rules](https://github.com/linthtml/linthtml/blob/develop/docs/rules.md).

```javascript
{
  "rules":{
    "attr-bans": ["div", "center"],
    "attr-quote-style": "double",
    "html-req-lang": true
  }
}
```

#### options.configFile

Type: `String`

Path to the LintHTML rules configuration file.

### linthtml(configFilePath)

Type: `String`

Shorthand for defining `options.configFile`.

### linthtml.failOnError()

Stop a task/stream if a LintHTML error has been reported for any file.

```javascript
// Cause the stream to stop(/fail) before copying an invalid JS file to the output directory
gulp.src('**/*.html')
    .pipe(linthtml())
    .pipe(linthtml.failOnError());
```

### linthtml.format()

Format all linted files once. This should be used in the stream after piping through `linthtml`; otherwise, this will find no LintHTML results to format.
npm package: @lintonrobinson/dropdown-button-toggle
Description: A lightweight utility to toggle dropdowns using a button with built-in open/close logic
Author: Linton Robinson
Latest version: 1.0.0

# @lintonrobinson/dropdown-button-toggle

A lightweight utility to toggle dropdowns using a button with built-in open/close logic. Uses `data-toggle` attributes to link buttons with their corresponding dropdown elements.

## Installation

```bash
npm install @lintonrobinson/dropdown-button-toggle
```

## Usage

```js
import toggleDropdown from "@lintonrobinson/dropdown-button-toggle";

// This will find all elements with a `data-toggle` attribute
// and attach toggle behavior to the element with the matching `id`
toggleDropdown("[data-toggle]");
```

## Example HTML

```html
<!-- Button targeting #dropdown1 -->
<button data-toggle="dropdown1">Toggle Dropdown 1</button>
<div id="dropdown1" class="dropdown-content">Dropdown 1 content</div>

<!-- Button targeting #dropdown2 -->
<button data-toggle="dropdown2">Toggle Dropdown 2</button>
<div id="dropdown2" class="dropdown-content">Dropdown 2 content</div>
```

## What It Does

- Adds a click event to every button with a `data-toggle` attribute
- Uses the value of `data-toggle` to find and toggle the matching `id`
- Adds or removes the `active` class on the dropdown element

## Styling Suggestion

```css
.dropdown-content {
  display: none;
}

.dropdown-content.active {
  display: block;
}
```

## License

MIT