Skip to content

Commit 2d76dff

Browse files
committed
Appease linter
1 parent 37ff1cc commit 2d76dff

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

packages/react-dev-utils/ansiHTML.js

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
'use strict';
11+
112
var Anser = require('anser');
213

314
// Color scheme inspired by https://chriskempson.github.io/base16/css/base16-github.css
4-
var base00 = 'ffffff'; // Default Background
15+
// var base00 = 'ffffff'; // Default Background
516
var base01 = 'f5f5f5'; // Lighter Background (Used for status bars)
6-
var base02 = 'c8c8fa'; // Selection Background
17+
// var base02 = 'c8c8fa'; // Selection Background
718
var base03 = '969896'; // Comments, Invisibles, Line Highlighting
8-
var base04 = 'e8e8e8'; // Dark Foreground (Used for status bars)
19+
// var base04 = 'e8e8e8'; // Dark Foreground (Used for status bars)
920
var base05 = '333333'; // Default Foreground, Caret, Delimiters, Operators
10-
var base06 = 'ffffff'; // Light Foreground (Not often used)
11-
var base07 = 'ffffff'; // Light Background (Not often used)
21+
// var base06 = 'ffffff'; // Light Foreground (Not often used)
22+
// var base07 = 'ffffff'; // Light Background (Not often used)
1223
var base08 = 'ed6a43'; // Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
13-
var base09 = '0086b3'; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
14-
var base0A = '795da3'; // Classes, Markup Bold, Search Text Background
24+
// var base09 = '0086b3'; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
25+
// var base0A = '795da3'; // Classes, Markup Bold, Search Text Background
1526
var base0B = '183691'; // Strings, Inherited Class, Markup Code, Diff Inserted
1627
var base0C = '183691'; // Support, Regular Expressions, Escape Characters, Markup Quotes
17-
var base0D = '795da3'; // Functions, Methods, Attribute IDs, Headings
28+
// var base0D = '795da3'; // Functions, Methods, Attribute IDs, Headings
1829
var base0E = 'a71d5d'; // Keywords, Storage, Selector, Markup Italic, Diff Changed
19-
var base0F = '333333'; // Deprecated, Opening/Closing Embedded Language Tags e.g. <?php ?>
30+
// var base0F = '333333'; // Deprecated, Opening/Closing Embedded Language Tags e.g. <?php ?>
2031

2132
// Map ANSI colors from what babel-code-frame uses to base16-github
2233
// See: https://github.com/babel/babel/blob/e86f62b304d280d0bab52c38d61842b853848ba6/packages/babel-code-frame/src/index.js#L9-L22

packages/react-dev-utils/crashOverlay.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
110
'use strict';
211

312
var codeFrame = require('babel-code-frame');
@@ -370,7 +379,7 @@ function hintsDiv() {
370379
applyStyles(hints, hintsStyle);
371380

372381
var close = createHint('×');
373-
close.addEventListener('click', function (e) {
382+
close.addEventListener('click', function () {
374383
unmount();
375384
});
376385
applyStyles(close, closeButtonStyle);
@@ -417,7 +426,7 @@ function getGroupToggle(omitsCount, omitBundle) {
417426
accessify(omittedFrames);
418427
var text1 = document.createTextNode('\u25B6 ' + omitsCount + ' stack frames were collapsed.');
419428
omittedFrames.appendChild(text1);
420-
omittedFrames.addEventListener('click', function (e) {
429+
omittedFrames.addEventListener('click', function () {
421430
var hide = text1.textContent.match(//);
422431
var list = document.getElementsByName('bundle-' + omitBundle);
423432
for (var index = 0; index < list.length; ++index) {
@@ -452,7 +461,7 @@ function insertBeforeBundle(parent, omitsCount, omitBundle, actionElement) {
452461
div.setAttribute('name', 'bundle-' + omitBundle);
453462
var text = document.createTextNode('\u25BC ' + omitsCount + ' stack frames were expanded.');
454463
div.appendChild(text);
455-
div.addEventListener('click', function (e) {
464+
div.addEventListener('click', function () {
456465
return actionElement.click();
457466
});
458467
applyStyles(div, omittedFramesStyle);
@@ -770,7 +779,9 @@ window.addEventListener('keydown', escapeHandler);
770779

771780
try {
772781
Error.stackTraceLimit = 50;
773-
} catch (e) {}
782+
} catch (e) {
783+
// Browser may not support this, we don't care.
784+
}
774785

775786
var proxyConsole = function proxyConsole(type) {
776787
var orig = console[type];

0 commit comments

Comments
 (0)