open-index/open-npm huggingface dataset:
npm package: @purpur/eslint-plugin-purpur
Description: Eslint plugins for purpur. Use to enforce best practices and code quality using purpur. 🧹🪄
Latest version: 9.1.2

# @purpur/eslint-plugin-purpur

Eslint plugins for purpur. Use to enforce best practices and code quality using purpur. 🧹🪄

## Installation

rush: `rush add -p @purpur/eslint-plugin-purpur --dev`

npm: `npm i @purpur/eslint-plugin-purpur`

## Flat config

```ts
import purpurPlugin from "@purpur/eslint-plugin-purpur";

export default [
  {
    files: ["**/*.ts?(x)"],
    ...purpurPlugin.configs["recommended-flat"],
  },
];
```

## Legacy config

```js
// eslint <= 8
module.exports = {
  extends: ["plugin:@purpur/library/recommended"],
};
```

## Custom usage

### Flat config

```ts
import purpurPlugin from "@purpur/eslint-plugin-purpur";

export default [
  {
    files: ["**/*.ts?(x)"],
    plugins: {
      purpur: purpurPlugin,
    },
    rules: {
      "purpur/no-barrel-imports-flat": "error",
    },
  },
];
```

### Legacy config

```js
// eslint <= 8
module.exports = {
  plugins: ["@purpur/library"],
  rules: {
    "@purpur/library/no-barrel-imports": "error" | "warn",
  },
};
```
npm package: @purpurds/eslint-plugin-purpur
Description: Eslint plugins for purpur. Use to enforce best practices and code quality using purpur. 🧹🪄
Latest version: 8.21.0

# @purpurds/eslint-plugin-purpur

Eslint plugins for purpur. Use to enforce best practices and code quality using purpur. 🧹🪄

## Installation

rush: `rush add -p @purpurds/eslint-plugin-purpur --dev`

npm: `npm i @purpurds/eslint-plugin-purpur`


## Flat config 
```ts
import purpurPlugin from "@purpurds/eslint-plugin-purpur"

export default [
  {
    files: ["**/*.ts?(x)"],  
    ...purpurPlugin.configs["recommended-flat"],
  }
]
```

## Legacy config
```js
// eslint <= 8
module.exports = {
  extends: ["plugin:@purpurds/purpur/recommended"],
};
```

## Custom usage

### Flat config
```ts
import purpurPlugin from "@purpur/eslint-plugin-purpur";

export default [
  {
    files: ["**/*.ts?(x)"],  
    plugins: {
      purpur: purpurPlugin,
    },
    rules: {
      "purpur/no-barrel-imports-flat": "error",
    },
  },
];
```

### Legacy config
```js
// eslint <= 8
module.exports = {
  plugins: ["@purpurds/purpur"],
  rules: {
    "@purpurds/purpur/no-barrel-imports": "error" | "warn",
  },
};
```