eslint-plugin-assert
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-assert

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

9.45 kB

Total Files

15

Last publish

Collaborators

  • 43081j