open-index/open-npm huggingface dataset:
npm package: @johndiniz/eslint-config
Description: ESLint configuration used by johndiniz.
Latest version: 3.0.0

# johndiniz ESLint config

## Whats included?

- Standard config base;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;

## Setup

### React (with Next.js)

Install dependencies:
```
npm i -D eslint @johndiniz/eslint-config
```
Inside `.eslintrc.json`
```
{
  "extends": [
    "@johndiniz/eslint-config/next", 
    "next/core-web-vitals"
  ]
}
```

### React (without Next.js)

Install dependencies:
```
npm i -D eslint @johndiniz/eslint-config
```
Inside `.eslintrc.json`
```
{
  "extends": "@johndiniz/eslint-config/react"
}
```

### Node.js

Install dependencies:
```
npm i -D eslint @johndiniz/eslint-config
```
Inside `.eslintrc.json`
```
{
  "extends": "@johndiniz/eslint-config/node"
}
```
npm package: @johndockery/linear-cli
Description: CLI tool for interacting with Linear
Author: John Dockery
Latest version: 1.0.10

# Linear CLI

A command-line interface for interacting with Linear.

## Installation

```bash
npm install -g @johndockery/linear-cli
```


## Usage
### Initialize Configuration

```bash
linear init --api-key your_api_key_here
```

This will save your API key in `~/.linear-cli` for future use.

### List Teams

```bash
linear list-teams [--json]
```

### List Projects

```bash
linear list-projects [--json] [--team <teamId>]
```

### Create Issue

```bash
linear create-issue -t "Issue title" -p <projectId> --team-id <teamId> [options]

Options:
  -d, --description <description>  Issue description
  -s, --state-id <stateId>        State ID
  --labels <labels>               Comma-separated list of label IDs
  --assignee <assigneeId>         Assignee user ID
  --priority <priority>           Issue priority (0-4)
```

### Update Issue

```bash
linear update-issue -i <issueId> [options]

Options:
  -t, --title <title>            New title
  -d, --description <description> New description
  -s, --state-id <stateId>       New state ID
  --labels <labels>              Comma-separated list of label IDs
  --assignee <assigneeId>        Assignee user ID
  --priority <priority>          Issue priority (0-4)
```

### Get Issue Details

```bash
linear get-issue -i <issueId> [--json]
```

## Examples

Initialize configuration:

```bash
linear init --api-key lin_api_xxxxxxxxxxxx
```

List all teams:

```bash
linear list-teams
```

Create a new issue:

```bash
linear create-issue -t "Fix login bug" -p proj_123 --team-id team_456 -d "Users can't login on Safari" --priority 2
```

Get issue details:

```bash
linear get-issue -i issue_789
```

## License

MIT
npm package: @johndugan/ajv-bsontype
Description: Add bsonType validator to MongoDB
Author: johndugan
Latest version: 1.0.0

# ajv-bsontype

Add bsonType validators to MongoDB

* npm install ajv-bsontype --save


## Setup

### ESM

```
import Ajv from 'ajv'
import bson from 'ajv-bsontype';
const ajv = new Ajv(); // options: https://ajv.js.org/options.html#usage
bson(ajv);
```

### CJS

```
var Ajv = require('ajv');
var ajv = new Ajv;
require('ajv-bsontype')(ajv);
```

### Usage

```
const schema = {
   required: [ "name", "year", "major", "gpa" ],
   properties: {
      name: {
         bsonType: "string",
         description: "must be a string and is required"
      },
      gender: {
         bsonType: "string",
         description: "must be a string and is not required"
      },
      year: {
         bsonType: "int",
         description: "must be an integer in [ 2017, 3017 ] and is required"
      },
      major: {
         enum: [ "Math", "English", "Computer Science", "History", null ],
         description: "can only be one of the enum values and is required"
      },
      gpa: {
         bsonType: [ "double" ],
         description: "must be a double and is required"
      }
   }
}

const data = {
   name: "Alice",
   year: 2019,
   major: "History",
   gpa: 3
}

ajv.validate(schema, data)
```

License: MIT