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

Commit 5ccacb5

Browse files
jacksonrayhamiltonmarkelog
authored andcommitted
Preset: update crockford preset
Closes gh-819
1 parent f2496f4 commit 5ccacb5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

presets/crockford.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@
3232
"beforeOpeningRoundBrace": true
3333
},
3434
"requireMultipleVarDecl": "onevar",
35-
"requireBlocksOnNewline": 1,
35+
"requireBlocksOnNewline": true,
3636
"disallowEmptyBlocks": true,
3737
"disallowSpacesInsideArrayBrackets": true,
3838
"disallowSpacesInsideParentheses": true,
39-
"disallowQuotedKeysInObjects": true,
4039
"disallowDanglingUnderscores": true,
41-
"disallowSpaceAfterObjectKeys": true,
4240
"requireCommaBeforeLineBreak": true,
4341
"disallowSpaceAfterPrefixUnaryOperators": true,
4442
"disallowSpaceBeforePostfixUnaryOperators": true,
@@ -47,17 +45,20 @@
4745
],
4846
"requireSpaceBeforeBinaryOperators": true,
4947
"requireSpaceAfterBinaryOperators": true,
50-
"requireCamelCaseOrUpperCaseIdentifiers": true,
51-
"disallowKeywords": [ "with" ],
52-
"validateQuoteMarks": "'",
48+
"disallowKeywords": [
49+
"with",
50+
"continue"
51+
],
5352
"validateIndentation": 4,
5453
"disallowMixedSpacesAndTabs": true,
5554
"disallowTrailingWhitespace": true,
5655
"disallowTrailingComma": true,
57-
"disallowKeywordsOnNewLine": [ "else" ],
56+
"disallowKeywordsOnNewLine": [
57+
"else"
58+
],
5859
"requireLineFeedAtFileEnd": true,
5960
"requireCapitalizedConstructors": true,
6061
"requireDotNotation": true,
61-
"disallowYodaConditions": true,
62-
"disallowNewlineBeforeBlockStatements": true
62+
"disallowNewlineBeforeBlockStatements": true,
63+
"disallowMultipleLineStrings": true
6364
}

0 commit comments

Comments
 (0)