# eslint-plugin-path-checker-1911

> Eslint plugin to check import paths

Latest version **0.0.25** (published 2024-05-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-path-checker-1911
pnpm add eslint-plugin-path-checker-1911
yarn add eslint-plugin-path-checker-1911
bun add eslint-plugin-path-checker-1911
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.25 |
| Published | 2024-05-30 |
| First published | 2023-07-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^14.17.0 \|\| ^16.0.0 \|\| >= 18.0.0 |
| Dependencies | 2 |
| Unpacked size | 29.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dmitry |
| Maintainers | matt19111991 |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-path-checker-1911
- npm.io page: https://npm.io/package/eslint-plugin-path-checker-1911

## Dependencies (2)

- [micromatch](https://npm.io/package/micromatch.md) ^4.0.5
- [requireindex](https://npm.io/package/requireindex.md) ^1.2.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.0.25 (latest) — 2024-05-30
- 0.0.24 — 2023-11-09
- 0.0.23 — 2023-11-09
- 0.0.22 — 2023-10-15
- 0.0.20 — 2023-09-22
- 0.0.19 — 2023-09-22
- 0.0.18 — 2023-09-22
- 0.0.17 — 2023-09-05
- 0.0.16 — 2023-08-28
- 0.0.15 — 2023-08-21
- 0.0.14 — 2023-08-17
- 0.0.13 — 2023-08-17
- 0.0.12 — 2023-08-17
- 0.0.11 — 2023-08-16
- 0.0.10 — 2023-08-16
- … 10 more at https://npm.io/package/eslint-plugin-path-checker-1911/versions

## README

## Custom Eslint plugin to check import paths

#### Start work:

1. Install 'yo' globally: `npm i -g yo`
2. Create custom plugin: `yo eslint:plugin`
3. Create custom rules for plugin: `yo eslint:rule`
4. Update current version in `package.json` before publishing
5. Run `npm adduser` and sign in to `npmjs.com` once before publishing
6. Publish npm plugin: `npm publish`

------------------------------------------------------------

## Plugin rules

`- layer imports`
  Проверка вышележащих и нижележащих импортов:
    - вышележащие могут использовать нижележащие ('pages' могут использовать 'entities' и 'features')
    - нижележащие не могут использовать вышележащие ('entities' не могут использовать 'features' или 'pages')

`- path checker`
  Проверка импортов внутри модуля (должны быть всегда относительными)

`- public api imports`
  Проверка импортов из внешних модулей (должны быть через 'publicApi')

------------------------------------------------------------

## Plugin installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm i eslint --save-dev
```

Next, install `eslint-plugin-path-checker-1911`:

```sh
npm install eslint-plugin-path-checker-1911 --save-dev
```

## Plugin usage

Add `path-checker-1911` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
    "plugins": [
        "path-checker-1911"
    ]
}
```


Then configure the rules you want to use under the rules section.

```json
{
    "rules": {
        "path-checker-1911/rule-name": 2
    }
}
```

---
_Source: https://npm.io/package/eslint-plugin-path-checker-1911 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
