open-index/open-npm huggingface dataset:
npm package: @mohalla-tech/eslint-config-sharechat
Description: ShareChat's ESLint config
Author: Prarabdh Bharti
Latest version: 1.2.1

# eslint-config-sharechat

[![npm version](https://badge.fury.io/js/eslint-config-sharechat.svg)](https://badge.fury.io/js/eslint-config-sharechat)

This package provides ShareChat's .eslintrc as an extensible shared config.

## Configs Available

### Base Config

This config contains the most robust rules for ECMAScript 6+. (Peer Dependencies: `eslint`, `eslint-plugin-import`)

### React Config

This config contains the most robust rules for React based projects. (Peer Dependencies: `eslint`, `eslint-plugin-react`)

### React Accessibility Config

This config adds additional rules for accessbility (Peer Dependencies: `eslint`, `eslint-plugin-jsx-a11y`)

### React Hooks Config

This config adds additional rules for react hooks (Peer Dependencies: `eslint`, `eslint-plugin-react-hooks`)

### React JSX Runtime Config

This config can be used by React projects that work with the new JSX transform from React 17 (Peer Dependencies: `eslint`, `eslint-plugin-react`)

### Prettier

This config can be used by projects that also use Prettier for code formatting (Peer Dependencies: `eslint`, `eslint-config-prettier`, `prettier`)

### Svelte (v1.2.0 onwards)

From version 1.2.0, Svelte config has also been added.
This config can be used by Svelte based projects. (Peer Dependencies: `eslint`, `eslint-plugin-svelte3`)

## Usage

1. Depending on the config that you want to use, you will have to install the necessary peer dependencies.

2. Add the required keys in the `extends` key of ESLint config.

Note: All configs are independent of each other, therefore if you want to use multiple configurations, each configurations has to be included separately in the `extends` key of ESLint config in your project.

For example, if you want to use the rules for ES6, React and Prettier, the `extends` option should look like this
`extends: ["@mohalla-tech/eslint-config-sharechat", "@mohalla-tech/eslint-config-sharechat/react", "@mohalla-tech/eslint-config-sharechat/prettier"]`

## Improving this config

Currently the config doesn't extends rules for Vue, React Native.
npm package: @mohalla-tech/prettier-config-sharechat
Description: ShareChat's Prettier Configuration
Author: Prarabdh Bharti
Latest version: 1.1.1

# `prettier-config-sharechat`

> ShareChat's [Prettier](https://prettier.io) config.

## Usage

**Install**:

```bash
$ yarn add --dev prettier-config-sharechat
```

**Edit `package.json`**:

```jsonc
{
  // ...
  "prettier": "@mohalla-tech/prettier-config-sharechat"
}
```

**If you need to extend the configuration to overwrite some properties from the shared configuration import the file in a .prettierrc.js file and export the modifications, e.g**:

```js
module.exports = {
  ...require("@mohalla-tech/prettier-config-sharechat"),
  semi: false,
};
```
npm package: @mohalla-tech/typedoc-type-coverage-plugin
Description: A plugin for TypeDoc to generate type coverage report and type coverage badge.
Latest version: 1.0.3

# typedoc-type-coverage-plugin

This repo is forked from [typescript-coverage-report](https://github.com/alexcanessa/typescript-coverage-report)

A plugin for TypeDoc to generate type coverage report and type coverage badge.

This plugin will create a `type-coverage` directory inside your output directory when generating HTML documentation using typedoc.
`type-coverage` directory includes the detailed type coverage report and it will also create a badge `type-coverage.svg` when you run the typedoc.

## install

```bash

  yarn add -D @mohalla-tech/typedoc-type-coverage-plugin

```

## Screenshots

<img width="596" alt="image" src="https://user-images.githubusercontent.com/100559209/173741931-d6c1ca17-8f35-45e9-b637-1d0810c576a2.png">
<img width="1454" alt="image" src="https://user-images.githubusercontent.com/100559209/173743128-79464483-017d-4462-8674-3b55091fc043.png">
<img width="610" alt="image" src="https://user-images.githubusercontent.com/100559209/173752580-b46cc92c-3f64-4924-b2ab-5c323cbc1573.png">




## Options

| Option                          | Description                                                                            | Default value |
| ------------------------------- | -------------------------------------------------------------------------------------- | ------------- |
| `threshold [number]`            | The minimum percentage of coverage required.                                           | 90            |
npm package: @mohamadalkadiri/eu-postal-code
Description: A lightweight utility to extract postal codes from raw strings for supported European countries.
Author: Mohamad Al Kadiri
Latest version: 1.0.1

# eu-postal-code

A lightweight utility to extract postal codes from raw strings for supported European countries.

## Installation

```bash
npm install eu-postal-code
```

## Usage

```typescript
import { extractPostalCode } from 'eu-postal-code';

const address = "12345 Berlin, Germany";
const postalCode = extractPostalCode(address, "Germany");

console.log(postalCode); // Outputs: 12345
```

## Supported Countries

This utility supports the following European countries:

- Albania
- Andorra
- Armenia
- Austria
- Azerbaijan
- Belarus
- Belgium
- Bosnia and Herzegovina
- Bulgaria
- Croatia
- Cyprus
- Czech Republic
- Denmark
- Estonia
- Finland
- France
- Georgia
- Germany
- Greece
- Hungary
- Iceland
- Ireland
- Italy
- Kazakhstan
- Kosovo
- Latvia
- Liechtenstein
- Lithuania
- Luxembourg
- Malta
- Moldova
- Monaco
- Montenegro
- Netherlands
- North Macedonia
- Norway
- Poland
- Portugal
- Romania
- Russia
- San Marino
- Serbia
- Slovakia
- Slovenia
- Spain
- Sweden
- Switzerland
- Turkey
- Ukraine
- United Kingdom
- Vatican City

## Postal Code Patterns

The utility supports the following postal code patterns for each country:

```typescript
const postalCodePatterns: { [key: string]: RegExp } = {
  vaticanCity: /\\b00120\\b/,
  sanMarino: /\\b4789\\d{2}\\b/,
  monaco: /\\b980\\d{2}\\b/,
  adThreeDigits: /\\bAD\\d{3}\\b/,
  portugal: /\\b\\d{4}-\\d{3}\\b/,
  poland: /\\b\\d{2}-\\d{3}\\b/,
  uk: /\\b[A-Z]{1,2}\\d[A-Z\\d]? ?\\d[A-Z]{2}\\b/i,
  netherlands: /\\b\\d{4} ?[A-Z]{2}\\b/,
  twoPartWithSpace: /\\b\\d{3} \\d{2}\\b/,
  sixDigits: /\\b\\d{6}\\b/,
  fiveDigits: /\\b\\d{5}\\b/,
  fourDigits: /\\b\\d{4}\\b/,
};
```

## Example Usage

You can use the `extractPostalCode` function to extract postal codes from raw address strings.

### Example 1: Extract postal code for a specific country (Germany)

```typescript
const result = extractPostalCode('12345 Berlin, Germany', 'Germany');
console.log(result); // Outputs: '12345'
```

### Example 2: Extract postal code for a country when no country is specified

```typescript
const result = extractPostalCode('12345 Berlin, Germany');
console.log(result); // Outputs: '12345'
```

### Example 3: Extract multiple postal codes from a string

```typescript
const result = extractPostalCode('12345 Berlin, Germany and 75001 Paris, France', undefined, { type: 'array' });
console.log(result); // Outputs: ['12345', '75001']
```

### Example 4: Invalid country

```typescript
const invalidCountry: Country = 'InvalidCountry' as Country;
try {
  const result = extractPostalCode('12345 Berlin, Germany', invalidCountry);
} catch (error) {
  console.error(error.message); // Outputs: 'No postal code regex defined for country: InvalidCountry'
}
```
npm package: @mohamadkhani/pinia-plugin-loading
Description: Auto loading data binding plugin for pinia. You don't need to write showLoading and hideLoading any more.
Author: mohamadkhani
Latest version: 1.0.11

<h1>
  <img height="64" src="https://pinia.esm.dev/logo.svg" alt="Pinia logo">
  Pinia Plugin Loading
</h1>

Forked from [Fuphoenixes/piniaPluginLoading](https://github.com/Fuphoenixes/piniaPluginLoading)

Auto loading data binding plugin for pinia. You don't need to write showLoading and hideLoading any more.

## Installation

```sh
npm install pinia-plugin-loading
```
or

```sh
yarn add pinia-plugin-loading
```

## Usage

```ts
import { createPinia } from 'pinia'
import { PiniaLoading } from 'pinia-plugin-loading'
const pinia = createPinia()
pinia.use(PiniaLoading)
```

### Example

```ts
import { defineStore } from 'pinia'
export const useStore = defineStore('main', {
  state: () => {
    return {
      info: null
    }
  },
  actions: {
    async fetchData() {
      this.info = await requset('/api')
    }
  }
})
```

```vue
<template>
    <div>
       <loading :visible="store.$loading.fetchData" message="loading...">
    </div>
</template> 
<script lang="ts" setup>
import { useStore } from '@/store'
const store = useStore()
</script>
```

## License

[MIT](http://opensource.org/licenses/MIT)