open-index/open-npm huggingface dataset:
npm package: @saritasa/stylelint-config-order
Description: Saritasa's shareable config of properties order for stylelint
Author: Konstantin Petryaev
Latest version: 0.0.3

# @saritasa/stylelint-config-order

Saritasa's shareable config of properties order for [stylelint](https://github.com/stylelint/stylelint).

This config allows linting properties by defined [order](http://9elements.com/css-rule-order/). It requires [stylelint](https://github.com/stylelint/stylelint) and its [stylelint-order](https://github.com/hudochenkov/stylelint-order) plugin.

1. Install `stylelint` and `stylelint-order`

```sh
$ npm install --save-dev stylelint stylelint-order @saritasa/stylelint-config-order
```

2. Add `"@saritasa/stylelint-config-order"` to your `"extends"` section of `.stylelintrc` file.
npm package: @saritasa/stylelint-config-react
Description: Saritasa's shareable config for stylelint in react projects
Author: Konstantin Petryaev
Latest version: 1.0.0

# @saritasa/stylelint-config-react

Saritasa's shareable config for [stylelint](https://github.com/stylelint/stylelint) on react projects.

1. Install peer dependencies and config itself.

```sh
$ npm install --save-dev stylelint stylelint-declaration-use-variable stylelint-no-unsupported-browser-features
$ npm install --save-dev stylelint-order @saritasa/stylelint-config-order @saritasa/stylelint-config-react
```

2. Add `"@saritasa/stylelint-config-base"` to your `"extends"` section of `.stylelintrc` file.
npm package: @saritasa/tslint-config-angular
Description: Saritasa's shareable config for tslint of Angular X projects
Author: Danila Sidorkin
Latest version: 3.0.0

# @saritasa/tslint-config-angular

1. Install `@saritasa/tslint-config-angular` and peer dependencies (npm warns about them)
```
npm i --save-dev @saritasa/tslint-config-angular
```
2. Extend your `tslint.json` file
```
"extends": "@saritasa/tslint-config-angular"
```
npm package: @sarithats/tiny
Description: Removes all spaces from a string
Latest version: 2.0.0

# @sarithats/tiny

[![npm (scoped)](https://img.shields.io/npm/v/@sarithats/tiny.svg)](https://www.npmjs.com/package/@sarithats/tiny)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@sarithats/tiny.svg)](https://www.npmjs.com/package/@sarithats/tiny)

Removes all spaces from a string.

## Install

```
$ npm install @sarithats/tiny
```

## Usage

```js
const tiny = require("@sarithats/tiny");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
```
npm package: @sarj/eslint-plugin
Description: Custom ESLint rules collection for Sarj projects
Author: Sarj
Latest version: 1.0.1

# @sarj/eslint-plugin

Custom ESLint rules collection for Sarj projects. Supports ESLint 9+ flat config format.

## Installation

```bash
yarn add -D @sarj/eslint-plugin eslint
```

## Usage (ESLint 9+ Flat Config)

```js
// eslint.config.js
import sarj, { configs } from "@sarj/eslint-plugin";

export default [
  // Use a preset config
  ...configs.recommended,

  // Or configure manually
  {
    plugins: {
      "@sarj": sarj,
    },
    rules: {
      "@sarj/zod-naming-convention": "warn",
      "@sarj/require-assert-never": "error",
    },
  },
];
```

## Available Configs

| Config | Description |
|--------|-------------|
| `configs.recommended` | Basic sarj rules for everyday use |
| `configs.strict` | All sarj rules at error level |
| `configs.style-guide` | Comprehensive rules (sarj + core ESLint) |

## Rules

| Rule | Description | Recommended |
|------|-------------|-------------|
| `@sarj/zod-naming-convention` | Enforce Zod schemas to be named with a Z prefix | warn |
| `@sarj/require-assert-never` | Require assertNever in switch default cases | error |
| `@sarj/require-zod-form-validation` | Require Zod validation when parsing FormData | error |
| `@sarj/enforce-file-structure` | Enforce consistent file structure | warn |
| `@sarj/no-raw-env` | Disallow direct process.env access | - |
| `@sarj/prefer-shadcn` | Prefer shadcn/ui components over native HTML | - |
| `@sarj/no-enum` | Disallow TypeScript enums | - |

## Rule Details

### `zod-naming-convention`

Ensures Zod schemas are named with a Z prefix for consistency.

```ts
// Bad
const userSchema = z.object({ name: z.string() });

// Good
const ZUserSchema = z.object({ name: z.string() });
```

### `require-assert-never`

Ensures switch statements with default cases use assertNever for exhaustive type checking.

```ts
// Bad
switch (status) {
  case "active":
    return 1;
  default:
    return 0;
}

// Good
switch (status) {
  case "active":
    return 1;
  default:
    assertNever(status);
}
```

### `no-raw-env`

Disallows direct access to process.env. Use a Zod-validated env schema instead.

```ts
// Bad
const apiKey = process.env.API_KEY;

// Good
const apiKey = env.API_KEY; // from validated schema
```

### `prefer-shadcn`

Encourages use of shadcn/ui components instead of native HTML elements.

```tsx
// Bad
<button onClick={handleClick}>Submit</button>

// Good
<Button onClick={handleClick}>Submit</Button>
```

### `no-enum`

Discourages TypeScript enums in favor of union types or const objects.

```ts
// Bad
enum Status {
  Active,
  Inactive,
}

// Good
type Status = "active" | "inactive";
// or
const Status = { ACTIVE: "active", INACTIVE: "inactive" } as const;
```

## Requirements

- ESLint >= 9.0.0
- Node.js >= 18.0.0

## License

MIT