Skip to content

Commit 42f5364

Browse files
committed
prevent-abbreviations: Recognize jQuery
Fixes #2375
1 parent 04db394 commit 42f5364

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

rules/shared/abbreviations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,5 @@ export const defaultIgnore = [
267267
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1188
268268
'i18n',
269269
'l10n',
270+
'jQuery',
270271
];

test/prevent-abbreviations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ const tests = {
131131
'const i18nData = {}',
132132
'const l10n = new L10n()',
133133
'const iOS = true',
134+
'const jQueryEvent = true',
134135
outdent`
135136
(class {
136137
error() {}

0 commit comments

Comments
 (0)