Skip to content

Commit

Permalink
chore: add reamde
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Mar 9, 2024
1 parent ca45298 commit afe5427
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# eslint-plugin-optimize

This is an ESLint plugin to suggest various optimizations in your
sources.

Primarily, it will help detect dependency tree bloat and redundant
polyfills.

## Install

```sh
npm i -D eslint-plugin-optimize
```

## Usage

Add to your `.eslintrc.json`:

```json
{
"extends": [
"plugin:optimize/recommended"
]
}
```

Or if you're using (flat) config files, add to your `eslint.config.js`:

```ts
import {configs} from 'eslint-plugin-optimize';

export default [
configs.recommended,

// or if you want to specify `files`, or other options
{
...configs.recommended,
files: ['test/**/*.js']
}
];
```

## License

MIT

0 comments on commit afe5427

Please sign in to comment.