open-index/open-npm huggingface dataset:
npm package: @foray1010/import-sort-config
Description: ## Installation
Latest version: 2.0.0
Deprecated: use @foray1010/eslint-config instead

# `@foray1010/import-sort-config`

## Installation

1. `npm install --save-dev import-sort-cli @foray1010/import-sort-config`

1. Create an `.importsortrc.js` in the project root

   ```js
   'use strict'

   module.exports = require('@foray1010/import-sort-config')
   ```
npm package: @foray1010/jest-preset
Description: 1. `yarn add -DE @foray1010/jest-preset jest`
Latest version: 6.0.0

# `@foray1010/jest-preset`

## Installation

1. `yarn add -DE @foray1010/jest-preset jest`

1. Create an `jest.config.mjs` in the project root

   ```js
   const config = {
     preset: '@foray1010',
   }
   export default config
   ```
npm package: @foray1010/remark-preset
Description: 1. `yarn add -DE @foray1010/remark-preset remark-cli`
Latest version: 11.0.0

# `@foray1010/remark-preset`

## Installation

1. `yarn add -DE @foray1010/remark-preset remark-cli`

1. Create an `.remarkrc.mjs` in the project root

   ```js
   const config = {
     plugins: ['@foray1010/remark-preset'],
   }
   export default config
   ```

1. Use default remarkignore via npm script

   ```json
   {
     "scripts": {
       "remark": "remark --ignore-path=node_modules/@foray1010/remark-preset/remarkignore --ignore-path-resolve-from=cwd --silently-ignore"
     }
   }
   ```

   then use `npm run remark` or `yarn remark` to replace `remark`
npm package: @foray1010/renovate-config
Description: My personal renovate preset to sync renovate config across different repositories
Latest version: 1.4.2

# `@foray1010/renovate-config`

My personal renovate preset to sync renovate config across different repositories

## installation

no need to `npm install`

just put a `.renovaterc.json` in project root

```json
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["@foray1010/renovate-config"]
}
```
npm package: @foray1010/stylelint-config
Description: It aims at providing a general stylelint config for:
Latest version: 17.0.0

# `@foray1010/stylelint-config`

It aims at providing a general stylelint config for:

1. assisting developer to obtain better code quality

1. no opinion on coding styles, leave it to [@foray1010/prettier-config](../prettier-config)

## Versioning

### X.Y.Z

X for requiring newer stylelint or node (breaking changes)

Y for stricter rules

Z for looser rules

## Installation

1. `yarn add -DE @foray1010/stylelint-config prettier stylelint`

1. Create an `.stylelintrc.mjs` in the project root

   ```js
   const config = {
     extends: ['@foray1010/stylelint-config'],
   }
   export default config
   ```

1. Use default stylelintignore via npm script

   ```json
   {
     "scripts": {
       "stylelint": "stylelint --ignore-path=node_modules/@foray1010/stylelint-config/stylelintignore"
     }
   }
   ```

   then use `npm run stylelint` or `yarn stylelint` to replace `stylelint`
npm package: @foray1010/tsconfig
Description: This config assumes user never use TypeScript as compiler, but use it for type checker and/or type generator.
Latest version: 15.0.0

# `@foray1010/tsconfig`

This config assumes user never use TypeScript as compiler, but use it for type checker and/or type generator.

If you need to compile TypeScript, use [@foray1010/babel-preset](../babel-preset)

## Installation

1. `yarn add -DE @foray1010/tsconfig typescript`

2. Create an `tsconfig.json` in the project root

   - For Node.js app (type checking only):

     ```json
     {
       "$schema": "https://json.schemastore.org/tsconfig",
       "extends": "@foray1010/tsconfig/tsconfig.base.json"
     }
     ```

   - For general frontend application (type checking only):

     ```json
     {
       "$schema": "https://json.schemastore.org/tsconfig",
       "extends": "@foray1010/tsconfig/tsconfig.browser.json"
     }
     ```

   - For react.js application (type checking only):

     ```json
     {
       "$schema": "https://json.schemastore.org/tsconfig",
       "extends": "@foray1010/tsconfig/tsconfig.react.json"
     }
     ```

   - For library (type checking and generate typings):

     ```json
     {
       "$schema": "https://json.schemastore.org/tsconfig",
       "extends": [
         "@foray1010/tsconfig/tsconfig.base.json",
         "@foray1010/tsconfig/tsconfig.library.json"
       ]
     }
     ```
npm package: @forbeslindesay/npm-package-template
Description: npm-package-template
Author: Forbes Lindesay
Latest version: 2.0.0

# npm-package-template

A template for npm packages built in TypeScript

## Setting Up the New Repo

1. Hit "Use This Template" to create the repository
1. Enable [CircleCI](https://circleci.com/add-projects/gh/ForbesLindesay)
1. Enable [Change Log Version](https://changelogversion.com) using [My Change Log Version Installation](https://github.com/settings/installations/7328191)
1. In Settings
   1. Disable "Wikis"
   1. Disable "Projects"
   1. Disable "Allow merge commits"
   1. Disable "Allow rebase merging"
   1. Enable "Automatically delete head branches"
1. Create a new branch
1. Commit initial code to the branch (be sure to replace all refernces to npm-package-template, and remove these instructions from the README)
1. Push the new branch and create a PR
1. In Settings -> Branch Protection, create a new rule
   1. Use "master" as the branch name pattern
   1. Enable "Require status checks to pass before merging"
   1. Select the unit tests and changelog as required
   1. Enable "Include administrators"
   1. Enable "Restrict who can push to matching branches"
1. Merge the PR

## Installation

```
yarn add @forbeslindesay/npm-package-template
```

## Usage

```ts
import add from '@forbeslindesay/npm-package-template';

const result = add(2, 3);
// => 5
```
npm package: @forbeslindesay/react-navigation-stack
Description: Stack navigator component for React Navigation
Latest version: 1.3.0

# React Navigation Stack

[![CircleCI badge](https://circleci.com/gh/react-navigation/react-navigation-stack/tree/master.svg?style=shield)](https://circleci.com/gh/react-navigation/react-navigation-stack/tree/master)

Stack navigator for use on iOS and Android.

## Installation

Open a Terminal in your project's folder and run,

```sh
yarn add react-navigation-stack
```

## Usage

```js
import { createStackNavigator } from 'react-navigation-stack';

export default createStackNavigator({
  Inbox: InboxScreen
  Drafts: DraftsScreen,
}, {
  initialRouteName: 'Inbox',
});
```

## Development workflow

- Clone this repository
- Run `yarn` in the root directory and in the `example` directory
- Run `yarn dev` in the root directory
- Run `yarn start` in the `example` directory

## Docs

Documentation can be found on the [React Navigation website](https://reactnavigation.org/docs/en/stack-navigator.html).
npm package: @forbeslindesay/sync-mysql
Description: Make synchronous queries to a mysql database
Author: Forbes Lindesay
Latest version: 1.0.1

# sync-mysql

Make synchronous queries to a mysql database

[![Build Status](https://img.shields.io/travis/ForbesLindesay/sync-mysql/master.svg)](https://travis-ci.org/ForbesLindesay/sync-mysql)
[![Dependency Status](https://img.shields.io/david/ForbesLindesay/sync-mysql/master.svg)](http://david-dm.org/ForbesLindesay/sync-mysql)
[![NPM version](https://img.shields.io/npm/v/sync-mysql.svg)](https://www.npmjs.org/package/sync-mysql)

## Installation

```
npm install sync-mysql --save
```

## Usage

```js
var MySql = require('sync-mysql');

var connection = new MySql({
  host: 'localhost',
  user: 'me',
  password: 'secret'
});

const result = connection.query('SELECT 1 + 1 AS solution');
assert(result[0].solution === 2);
```

## API

### connection.getRecord(tableName, id)

Assuming that the table passed has an `id` column, get the record with that id.

### connection.query(str, values)

Return an array of objects from a SQL query. The query may optionally contain ?s to be replaced with escaped values from values which should be an array.

### connection.call(name, args)

Call a database procedure. If it returns only one set of values, that set of values is returned as an array of objects. If it returns multiple sets of values then they are returned as an array.

## License

MIT
npm package: @forbeslindesay/tsconfig
Description: Forbes Lindesay's tsconfig, tslint, prettier etc. configs
Latest version: 2.1.1

# tsconfig

Forbes Lindesay's tsconfig, tslint, prettier etc. configs. These shared configs are used to set up our TypeScript projects.

[![Rolling Versions - Release Notes](https://img.shields.io/badge/Rolling%20Versions-Release%20Notes-brightgreen?style=for-the-badge)](https://rollingversions.com/ForbesLindesay/tsconfig)

## TypeScript Config

To use my tsconfig as your default config. Install `typescript` via:

```sh
yarn add -D @forbeslindesay/tsconfig typescript
```

and add the following `tsconfig.json` in your project's root directory:

```json
{
  "extends": "@forbeslindesay/tsconfig",
  "compilerOptions": {
    "outDir": "lib"
  },
  "include": ["src"]
}
```

In `package.json` add:

```json
{
  ...
  "scripts": {
    ...
    "build": "tsc"
    ...
  }
  ...
}
```

## ESLint Config

To use my eslint as your default config. Install `eslint` via:

```sh
yarn add -D \
  eslint \
  eslint-plugin-import \
  @typescript-eslint/eslint-plugin \
  @typescript-eslint/parser
```

and add the following `.eslintrc.js` in your project's root directory:

```js
module.exports = require('@forbeslindesay/tsconfig/eslint')({
  internalRegex: '^@my-name',
});
```

and add the following `.eslintrc-ts.js` in your project's root directory:

````js
module.exports = require('@forbeslindesay/tsconfig/eslint-ts')({
  internalRegex: '^@my-name',
});
```

In `package.json` add:

```json
{
  ...
  "scripts": {
    ...
    "lint": "eslint --config .eslintrc-ts.js --no-eslintrc --ext .ts,.tsx src",
    "lint:fix": "eslint --fix --config .eslintrc-ts.js --no-eslintrc --ext .ts,.tsx src"
    ...
  }
  ...
}
````

## Prettier Config

To use my prettier as your default config. Install `prettier` via:

```sh
yarn add -D @forbeslindesay/tsconfig prettier
```

and add the following `prettier.config.js` in your project's root directory:

```json
module.exports = require('@forbeslindesay/tsconfig/prettier');
```

In `package.json` add:

```json
{
  ...
  "scripts": {
    ...
    "prettier:write": "prettier --ignore-path .gitignore --write './**/*.{md,json,yaml,js,jsx,ts,tsx}'",
    "prettier:check": "prettier --ignore-path .gitignore --list-different './**/*.{md,json,yaml,js,jsx,ts,tsx}'",
    ...
  }
  ...
}
```

## Husky / Lint-Staged

We recommend using husky with lint staged. To do this, run:

```sh
yarn add -D @forbeslindesay/tsconfig prettier husky lint-staged
```

and add the following to package.json. This will run prettier on just files that have changed.

```json
{
  ...
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{md,json,yaml,js,jsx,ts,tsx}": [
      "prettier --write",
      "git add"
    ]
  }
  ...
}
```

## License

MIT