ESLint test
Betterer ships several built-in tests to get you started. Check out the implementations for inspiration for your own tests!
@betterer/eslint
Use this test to incrementally introduce new ESLint rules to your codebase. You can pass as many rule configurations as you like:
import { eslint } from '@betterer/eslint';
export default {
'no more debuggers': () => eslint({ 'no-debugger': 'error' }).include('./src/**/*.ts')
};
@betterer/eslint
is a BettererFileTest, so you can use include
, exclude
, only
, and skip
.