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

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

Issue 2563553002: DevTools: Disallow console.log statements with eslint (Closed)
Patch Set: fix tests Created 4 years 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
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 "no-multi-str": 2, 48 "no-multi-str": 2,
49 "no-caller": 2, 49 "no-caller": 2,
50 "no-implied-eval": 2, 50 "no-implied-eval": 2,
51 "no-labels": 2, 51 "no-labels": 2,
52 "no-new-object": 2, 52 "no-new-object": 2,
53 "no-octal-escape": 2, 53 "no-octal-escape": 2,
54 "no-self-compare": 2, 54 "no-self-compare": 2,
55 "no-shadow-restricted-names": 2, 55 "no-shadow-restricted-names": 2,
56 "no-cond-assign": 2, 56 "no-cond-assign": 2,
57 "no-debugger": 2, 57 "no-debugger": 2,
58 "no-console": [2, { "allow": ["warn", "error", "assert", "timeStamp", "t ime", "timeEnd"] }],
58 "no-dupe-keys": 2, 59 "no-dupe-keys": 2,
59 "no-duplicate-case": 2, 60 "no-duplicate-case": 2,
60 "no-empty-character-class": 2, 61 "no-empty-character-class": 2,
61 "no-unreachable": 2, 62 "no-unreachable": 2,
62 "no-unsafe-negation": 2, 63 "no-unsafe-negation": 2,
63 "radix": 2, 64 "radix": 2,
64 "valid-typeof": 2, 65 "valid-typeof": 2,
65 66
66 // es2015 features 67 // es2015 features
67 "require-yield": 2, 68 "require-yield": 2,
(...skipping 19 matching lines...) Expand all
87 "after": true, 88 "after": true,
88 "before": true 89 "before": true
89 }], 90 }],
90 91
91 // file whitespace 92 // file whitespace
92 "no-multiple-empty-lines": [2, {"max": 2}], 93 "no-multiple-empty-lines": [2, {"max": 2}],
93 "no-mixed-spaces-and-tabs": 2, 94 "no-mixed-spaces-and-tabs": 2,
94 "no-trailing-spaces": 2, 95 "no-trailing-spaces": 2,
95 "linebreak-style": [ 2, "unix" ], 96 "linebreak-style": [ 2, "unix" ],
96 97
97
98 /** 98 /**
99 * Disabled, aspirational rules 99 * Disabled, aspirational rules
100 */ 100 */
101 101
102 "indent": [0, 2, { "SwitchCase": 1, "CallExpression": {"arguments": 2}, "MemberExpression": 2 }], 102 "indent": [0, 2, { "SwitchCase": 1, "CallExpression": {"arguments": 2}, "MemberExpression": 2 }],
103 103
104 // brace-style is disabled, as eslint cannot enforce 1tbs as default, bu t allman for functions 104 // brace-style is disabled, as eslint cannot enforce 1tbs as default, bu t allman for functions
105 "brace-style": [0, "allman", { "allowSingleLine": true }], 105 "brace-style": [0, "allman", { "allowSingleLine": true }],
106 106
107 // key-spacing is disabled, as some objects use value-aligned spacing, s ome not. 107 // key-spacing is disabled, as some objects use value-aligned spacing, s ome not.
108 "key-spacing": [0, { 108 "key-spacing": [0, {
109 "beforeColon": false, 109 "beforeColon": false,
110 "afterColon": true, 110 "afterColon": true,
111 "align": "value" 111 "align": "value"
112 }], 112 }],
113 // quote-props is diabled, as property quoting styles are too varied to enforce. 113 // quote-props is diabled, as property quoting styles are too varied to enforce.
114 "quote-props": [0, "as-needed"], 114 "quote-props": [0, "as-needed"],
115 115
116 // no-implicit-globals will prevent accidental globals 116 // no-implicit-globals will prevent accidental globals
117 "no-implicit-globals": [0] 117 "no-implicit-globals": [0]
118 } 118 }
119 }; 119 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698