0.0.1 • Published 1 year ago

eslint-plugin-assert v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

eslint-plugin-assert

An ESLint plugin for assisting with best practices when using an assertion library in a JS/TS project.

Install

npm i -D eslint-plugin-assert

Usage

Add to your .eslintrc.json:

{
  "extends": [
    "plugin:assert/recommended"
  ]
}

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

import {configs} from 'eslint-plugin-assert';

export default [
  configs.recommended,

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

License

MIT

0.0.1

1 year ago