eslint-plugin-assert
v0.0.1
Published
An ESLint plugin for assisting with best practices when using assertion libraries
Downloads
4
Readme
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