open-index/open-npm huggingface dataset:
npm package: @maiyush/eslint-config
Description: Shared ESLint configuration for Node.js and libraries
Author: maiyush
Latest version: 1.0.0

# @maiyush/eslint-config

Shared ESLint configuration for Node.js and libraries.

## Installation

```bash
pnpm add -D @maiyush/eslint-config eslint typescript
```

## Usage

Create an `eslint.config.js` (or `eslint.config.mjs`):

### For Node.js projects

```js
import node from '@maiyush/eslint-config/node';

export default [...node];
```

### For libraries

```js
import library from '@maiyush/eslint-config/library';

export default [...library];
```

### For Next.js projects

```js
import next from '@maiyush/eslint-config/next';

export default [...next];
```

## Features

- ESLint 9 flat config
- TypeScript support
- Prettier integration
- Import ordering
- Consistent type imports

## Rules included

- `prettier/prettier: error`
- `@typescript-eslint/consistent-type-imports`
- `@typescript-eslint/explicit-function-return-type`
- `import/order` with alphabetization

## License

MIT
npm package: @maiyush/prettier
Description: Shared Prettier configuration
Author: maiyush
Latest version: 1.0.0

# @maiyush/prettier

Shared Prettier configuration.

## Installation

```bash
pnpm add -D @maiyush/prettier prettier
```

## Usage

Add to your `package.json`:

```json
{
  "prettier": "@maiyush/prettier"
}
```

Or create a `.prettierrc.mjs`:

```js
import config from '@maiyush/prettier';

export default config;
```

## Configuration

This config includes:

- `trailingComma: "all"`
- `tabWidth: 2`
- `semi: true`
- `singleQuote: true`
- `arrowParens: "always"`
- `printWidth: 80`
- `singleAttributePerLine: true`

### Tailwind CSS Plugin

If you have `prettier-plugin-tailwindcss` installed, it will be used automatically.

## License

MIT
npm package: @maiyush/tsconfig
Description: Shared TypeScript configuration
Author: maiyush
Latest version: 1.0.0

# @maiyush/tsconfig

Shared TypeScript configuration.

## Installation

```bash
pnpm add -D @maiyush/tsconfig typescript
```

## Usage

Create a `tsconfig.json`:

### For Node.js projects

```json
{
  "extends": "@maiyush/tsconfig/node.json",
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "include": ["src"]
}
```

### For libraries (React/Browser)

```json
{
  "extends": "@maiyush/tsconfig/library.json",
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "include": ["src"]
}
```

## Configurations

### `node.json`

Optimized for Node.js backend:
- Target: ES2024
- Module: ESNext
- Module Resolution: bundler
- Strict mode enabled

### `library.json`

Optimized for libraries and React:
- Target: ES2024
- Module: ESNext
- JSX: react-jsx
- DOM types included
- No emit (for bundlers)

## License

MIT
npm package: @maizzle/email-normalize
Description: CSS resets for default styles in email clients
Latest version: 1.0.0

<div align="center">
    <img src="media/logo.svg" alt="email-normalize" width="400">
    <br>
    <br>
</div>

# About

> CSS resets for default styles in email clients

Like browsers, email clients use default styles for HTML.

_Unlike_ browsers, there is little to no standardization, and email developers need to be familiar with many, constantly changing CSS reset techniques.

`email-normalize` tries to help by providing an up-to-date, community-maintained list of CSS snippets that you can use to normalize styles in HTML emails.

## Install

```sh
npm install @maizzle/email-normalize
```

###### Download

- [Normal](https://cdn.jsdelivr.net/npm/@maizzle/email-normalize@1.0.0/email-normalize.css)
- [Minified](https://cdn.jsdelivr.net/npm/@maizzle/email-normalize@1.0.0/email-normalize.min.css)

###### CDN

- [jsdelivr](https://www.jsdelivr.com/package/npm/@maizzle/email-normalize)
- [unpkg](https://unpkg.com/@maizzle/email-normalize)

## Usage

### In CSS:

```css
@import 'node_modules/@maizzle/email-normalize/email-normalize.css';
```

### In HTML:

```html
<link rel="stylesheet" href="node_modules/@maizzle/email-normalize/email-normalize.css">
```

### In PostCSS:

```css
@import '@maizzle/email-normalize';
```

### In your app:

```js
const rules = require('@maizzle/email-normalize')
```

`rules` is an object containing CSS resets organized by email client.

Example:

```js
module.exports = {
  generic: [
    {
      css: 'img { -ms-interpolation-mode: bicubic !important; }',
      description: '`-ms-interpolation-mode` was used for re-sampling images that needed to stretch. Since IE8, this has been set as `bicubic`. This now only works in IE11, which also has a default of `bicubic`. Outlook also has `bicubic` set as default.',
      can_inline: true,
      deprecated: 1655240400000, // June 15, 2022
    }
  ]
}
```

In this example, the `generic` key represents the email client.

#### Rule keys

Each `rule` object includes several keys that you can use.

#### `css`

Type: `string`

The CSS code, without line breaks or comments.

#### `description`

Type: `string`

A description of what the reset does (or did).

#### `can_inline`

Type: `undefined|boolean`\
Default: `undefined`

Boolean indicating if the CSS reset can be used inline.

#### `deprecated`

Type: `undefined|number`\
Default: `undefined`

Timestamp indicating the date when the CSS reset was deprecated.

These are approximations based on personal experience, unless otherwise noted.

## Credits

Name and logo inspired by [modern-normalize](https://github.com/sindresorhus/modern-normalize/).

Free ["merge" SVG icon](https://www.flaticon.com/free-icon/merge_3580192) by [mavadee](https://www.flaticon.com/authors/mavadee).