Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/.jscsrc

Issue 1908863002: DevTools: Introduce eslint configuration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better inline docs. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/.eslintrc.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {
2 // rules documentation: http://jscs.info/rules.html
3
4 "esnext": true,
5
6 "requireSpaceAfterKeywords": [
7 "if",
8 "else",
9 "for",
10 "while",
11 "do",
12 "switch",
13 "return"
14 ],
15 "disallowKeywords": [
16 "with"
17 ],
18 "disallowKeywordsOnNewLine": [
19 "else",
20 "catch"
21 ],
22
23 "disallowSpaceAfterPrefixUnaryOperators": true,
24 "disallowSpaceBeforePostfixUnaryOperators": [
25 "++",
26 "--"
27 ],
28 "requireSpaceBeforeBinaryOperators": true,
29 "requireSpaceAfterBinaryOperators": true,
30
31 "disallowMultipleVarDecl": true,
32
33 "disallowSpacesInsideParentheses": true,
34 "disallowEmptyBlocks": true,
35
36 "requireParenthesesAroundIIFE": true,
37 "requireSpaceBetweenArguments": true,
38 "requireSpacesInFunctionDeclaration": {
39 "beforeOpeningCurlyBrace": true
40 },
41 "requireSpacesInAnonymousFunctionExpression": {
42 "beforeOpeningCurlyBrace": true
43 },
44 "disallowSpacesInNamedFunctionExpression": {
45 "beforeOpeningRoundBrace": true
46 },
47 "requireSpacesInNamedFunctionExpression": {
48 "beforeOpeningCurlyBrace": true
49 },
50
51 "requireSpacesInConditionalExpression": {
52 "afterTest": true,
53 "beforeConsequent": true,
54 "afterConsequent": true,
55 "beforeAlternate": true
56 },
57
58 "disallowSpaceBeforeBinaryOperators": [
59 ","
60 ],
61 "requireCommaBeforeLineBreak": true,
62
63 "validateQuoteMarks": "\"",
64 "disallowMultipleLineStrings": true,
65
66 "disallowImplicitTypeConversion": [
67 "numeric",
68 "binary"
69 ],
70 "disallowYodaConditions": true,
71
72 "disallowSpacesInsideArrayBrackets": true,
73
74 "disallowSpaceAfterObjectKeys": true,
75
76 "disallowQuotedKeysInObjects": true,
77
78 "requireSpaceAfterLineComment": true,
79 "requireLineFeedAtFileEnd": true,
80 "disallowMultipleLineBreaks": true,
81 "disallowMixedSpacesAndTabs": true,
82 "disallowTrailingWhitespace": true,
83 "validateLineBreaks": "LF"
84 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/.eslintrc.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698