Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit a41d7c6

Browse files
Joe Bartletthzoo
authored andcommitted
Preset: enforce Airbnb rule 25.1
Closes gh-2075
1 parent 168009d commit a41d7c6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

presets/airbnb.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"requireSpaceBeforeBinaryOperators": true,
4343
"requireSpaceAfterBinaryOperators": true,
4444
"requireCamelCaseOrUpperCaseIdentifiers": true,
45+
"requireDollarBeforejQueryAssignment": true,
4546
"requireLineFeedAtFileEnd": true,
4647
"requireCapitalizedConstructors": true,
4748
"requireDotNotation": true,

test/data/options/preset/airbnb.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
anotherSuperLongParam="baz"
66
/>;
77

8+
// requireDollarBeforejQueryAssignment
9+
var $div = $('.container');
10+
811
// validateIndentation: 2
912
'use strict';
1013

0 commit comments

Comments
 (0)