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

Side by Side Diff: third_party/WebKit/Source/devtools/.eslintrc.js

Issue 2464283002: DevTools: clang format all the source + clang config landed (2) (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 module.exports = { 1 module.exports = {
2 "root": true, 2 "root": true,
3 3
4 "env": { 4 "env": {
5 "browser": true, 5 "browser": true,
6 "es6": true 6 "es6": true
7 }, 7 },
8 8
9 /** 9 /**
10 * ESLint rules 10 * ESLint rules
11 * 11 *
12 * All available rules: http://eslint.org/docs/rules/ 12 * All available rules: http://eslint.org/docs/rules/
13 * 13 *
14 * Rules take the following form: 14 * Rules take the following form:
15 * "rule-name", [severity, { opts }] 15 * "rule-name", [severity, { opts }]
16 * Severity: 2 == error, 1 == warning, 0 == off. 16 * Severity: 2 == error, 1 == warning, 0 == off.
17 */ 17 */
18 "rules": { 18 "rules": {
19 /** 19 /**
20 * Enforced rules 20 * Enforced rules
21 */ 21 */
22 22
23 23
24 // syntax preferences 24 // syntax preferences
25 // "indent": [2, 2, { "SwitchCase": 1, "CallExpression": {"arguments": 2 }, "MemberExpression": 2 }],
26 "quotes": [2, "single", { 25 "quotes": [2, "single", {
27 "avoidEscape": true, 26 "avoidEscape": true,
28 "allowTemplateLiterals": true 27 "allowTemplateLiterals": true
29 }], 28 }],
30 "semi": 2, 29 "semi": 2,
31 "no-extra-semi": 2, 30 "no-extra-semi": 2,
32 "comma-style": [2, "last"], 31 "comma-style": [2, "last"],
33 "wrap-iife": [2, "inside"], 32 "wrap-iife": [2, "inside"],
34 "spaced-comment": [2, "always", { 33 "spaced-comment": [2, "always", {
35 "markers": ["*"] 34 "markers": ["*"]
(...skipping 10 matching lines...) Expand all
46 "no-multi-str": 2, 45 "no-multi-str": 2,
47 "no-caller": 2, 46 "no-caller": 2,
48 "no-implied-eval": 2, 47 "no-implied-eval": 2,
49 "no-labels": 2, 48 "no-labels": 2,
50 "no-new-object": 2, 49 "no-new-object": 2,
51 "no-octal-escape": 2, 50 "no-octal-escape": 2,
52 "no-self-compare": 2, 51 "no-self-compare": 2,
53 "no-shadow-restricted-names": 2, 52 "no-shadow-restricted-names": 2,
54 53
55 // es2015 features 54 // es2015 features
56 // "no-useless-constructor": 2,
57 "require-yield": 2, 55 "require-yield": 2,
58 "template-curly-spacing": [2, "never"], 56 "template-curly-spacing": [2, "never"],
59 57
60 // spacing details 58 // spacing details
61 "space-infix-ops": 2, 59 "space-infix-ops": 2,
62 "space-in-parens": [2, "never"], 60 "space-in-parens": [2, "never"],
63 "space-before-function-paren": [2, "never"], 61 "space-before-function-paren": [2, "never"],
64 "no-whitespace-before-property": 2, 62 "no-whitespace-before-property": 2,
65 "keyword-spacing": [2, { 63 "keyword-spacing": [2, {
66 "overrides": { 64 "overrides": {
(...skipping 15 matching lines...) Expand all
82 "no-multiple-empty-lines": [2, {"max": 2}], 80 "no-multiple-empty-lines": [2, {"max": 2}],
83 "no-mixed-spaces-and-tabs": 2, 81 "no-mixed-spaces-and-tabs": 2,
84 "no-trailing-spaces": 2, 82 "no-trailing-spaces": 2,
85 "linebreak-style": [ 2, "unix" ], 83 "linebreak-style": [ 2, "unix" ],
86 84
87 85
88 /** 86 /**
89 * Disabled, aspirational rules 87 * Disabled, aspirational rules
90 */ 88 */
91 89
90 "indent": [0, 2, { "SwitchCase": 1, "CallExpression": {"arguments": 2}, "MemberExpression": 2 }],
91
92 // brace-style is disabled, as eslint cannot enforce 1tbs as default, bu t allman for functions 92 // brace-style is disabled, as eslint cannot enforce 1tbs as default, bu t allman for functions
93 "brace-style": [0, "allman", { "allowSingleLine": true }], 93 "brace-style": [0, "allman", { "allowSingleLine": true }],
94 94
95 // key-spacing is disabled, as some objects use value-aligned spacing, s ome not. 95 // key-spacing is disabled, as some objects use value-aligned spacing, s ome not.
96 "key-spacing": [0, { 96 "key-spacing": [0, {
97 "beforeColon": false, 97 "beforeColon": false,
98 "afterColon": true, 98 "afterColon": true,
99 "align": "value" 99 "align": "value"
100 }], 100 }],
101 // quote-props is diabled, as property quoting styles are too varied to enforce. 101 // quote-props is diabled, as property quoting styles are too varied to enforce.
102 "quote-props": [0, "as-needed"], 102 "quote-props": [0, "as-needed"],
103 103
104 // no-implicit-globals will prevent accidental globals 104 // no-implicit-globals will prevent accidental globals
105 "no-implicit-globals": [0] 105 "no-implicit-globals": [0]
106 } 106 }
107 }; 107 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/.eslintignore ('k') | third_party/WebKit/Source/devtools/front_end/.eslintignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698