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

Commit

Permalink
Preset: enforce Airbnb rule 25.1
Browse files Browse the repository at this point in the history
Closes gh-2075
  • Loading branch information
Joe Bartlett authored and hzoo committed Jan 23, 2016
1 parent 168009d commit a41d7c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions presets/airbnb.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceAfterBinaryOperators": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireDollarBeforejQueryAssignment": true,
"requireLineFeedAtFileEnd": true,
"requireCapitalizedConstructors": true,
"requireDotNotation": true,
Expand Down
3 changes: 3 additions & 0 deletions test/data/options/preset/airbnb.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
anotherSuperLongParam="baz"
/>;

// requireDollarBeforejQueryAssignment
var $div = $('.container');

// validateIndentation: 2
'use strict';

Expand Down

0 comments on commit a41d7c6

Please sign in to comment.