Update rules

This commit is contained in:
Alex
2024-08-13 03:37:00 -04:00
parent 191848fdca
commit b0cc4a1525
21 changed files with 106 additions and 53 deletions

View File

@ -1,7 +1,8 @@
/* eslint-disable unicorn/string-content */
import type { UnicornRulesObject } from '@aet/eslint-define-config/src/rules/unicorn';
import { defineMiddleware } from '../middleware';
import { error, warn } from '../constants';
import { defineMiddleware } from '../middleware';
const suggest = (suggest: string) => ({ suggest, fix: false });
@ -85,6 +86,10 @@ const unicornRules: Partial<UnicornRulesObject> = {
'<=>': suggest('⇔'),
'\\.\\.\\.': suggest('…'),
"'s ": suggest('s '),
"l'": suggest('l'),
"d'": suggest('d'),
'?!': suggest('⁈'),
'!?': suggest('⁉'),
},
},
],