@@ -4,6 +4,7 @@ import globals from 'globals';
44import eslintPluginUnicorn from 'eslint-plugin-unicorn' ;
55import react from 'eslint-plugin-react' ;
66import reactHooks from 'eslint-plugin-react-hooks' ;
7+ import pluginChaiFriendly from 'eslint-plugin-chai-friendly' ;
78
89export default tseslint . config (
910 eslint . configs . recommended ,
@@ -14,10 +15,13 @@ export default tseslint.config(
1415 {
1516 files : [ '**/*.{js,jsx,ts,tsx}' ] ,
1617 plugins : {
18+ 'chai-friendly' : pluginChaiFriendly ,
1719 unicorn : eslintPluginUnicorn ,
1820 react : react ,
1921 } ,
2022 rules : {
23+ '@typescript-eslint/no-unused-expressions' : 'off' ,
24+ 'chai-friendly/no-unused-expressions' : 'error' ,
2125 'unicorn/prefer-node-protocol' : 'error' ,
2226 '@typescript-eslint/no-explicit-any' : 'off' ,
2327 '@typescript-eslint/consistent-type-imports' : 'error' ,
@@ -37,6 +41,12 @@ export default tseslint.config(
3741 } ,
3842 } ,
3943 } ,
44+ {
45+ files : [ 'spec/**/*.{js,cjs,ts}' ] ,
46+ rules : {
47+ '@typescript-eslint/no-require-imports' : 'off' ,
48+ } ,
49+ } ,
4050 {
4151 settings : {
4252 react : {
0 commit comments