diff --git a/eslint-rules/__tests__/no-primitive-constructors-test.js b/eslint-rules/__tests__/no-primitive-constructors-test.js index 8756117f8b..5d1a19ef18 100644 --- a/eslint-rules/__tests__/no-primitive-constructors-test.js +++ b/eslint-rules/__tests__/no-primitive-constructors-test.js @@ -34,7 +34,8 @@ ruleTester.run('eslint-rules/no-primitive-constructors', rule, { code: 'String(obj)', errors: [ { - message: 'Do not use the String constructor. To cast a value to a string, concat it with the empty string (unless it\'s a symbol, which has different semantics): \'\' + value', + message: 'Do not use the String constructor. To cast a value to a string, ' + + 'concat it with the empty string (unless it\'s a symbol, which has different semantics): \'\' + value', }, ], }, diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index 6525e7fcce..895e27357a 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; const { rollup } = require('rollup'); const babel = require('rollup-plugin-babel'); diff --git a/scripts/rollup/modules.js b/scripts/rollup/modules.js index c985d1fa35..898f95b271 100644 --- a/scripts/rollup/modules.js +++ b/scripts/rollup/modules.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; const { resolve, basename } = require('path'); const { sync } = require('glob'); diff --git a/scripts/rollup/shims/facebook-www/ReactElement.js b/scripts/rollup/shims/facebook-www/ReactElement.js index 1b866f9c9e..6a872652c1 100644 --- a/scripts/rollup/shims/facebook-www/ReactElement.js +++ b/scripts/rollup/shims/facebook-www/ReactElement.js @@ -8,7 +8,7 @@ * * @providesModule ReactElement */ -"use strict"; +'use strict'; const { createElement, diff --git a/scripts/rollup/shims/react-native/NativeMethodsMixin.js b/scripts/rollup/shims/react-native/NativeMethodsMixin.js index 6b42c6b279..786c903600 100644 --- a/scripts/rollup/shims/react-native/NativeMethodsMixin.js +++ b/scripts/rollup/shims/react-native/NativeMethodsMixin.js @@ -17,4 +17,3 @@ const { } = require('ReactNative'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.NativeMethodsMixin; - \ No newline at end of file diff --git a/scripts/rollup/shims/react-native/ReactDebugTool.js b/scripts/rollup/shims/react-native/ReactDebugTool.js index 04abe07ff5..883a254093 100644 --- a/scripts/rollup/shims/react-native/ReactDebugTool.js +++ b/scripts/rollup/shims/react-native/ReactDebugTool.js @@ -16,4 +16,3 @@ const { } = require('ReactNative'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDebugTool; - \ No newline at end of file diff --git a/scripts/rollup/shims/react-native/ReactErrorUtils.js b/scripts/rollup/shims/react-native/ReactErrorUtils.js index 57c4dec8ba..441a9b81c8 100644 --- a/scripts/rollup/shims/react-native/ReactErrorUtils.js +++ b/scripts/rollup/shims/react-native/ReactErrorUtils.js @@ -16,4 +16,3 @@ const { } = require('ReactNative'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactErrorUtils; - \ No newline at end of file diff --git a/scripts/rollup/shims/react-native/TouchHistoryMath.js b/scripts/rollup/shims/react-native/TouchHistoryMath.js index b50cb29684..f0e6bc2ae9 100644 --- a/scripts/rollup/shims/react-native/TouchHistoryMath.js +++ b/scripts/rollup/shims/react-native/TouchHistoryMath.js @@ -16,4 +16,3 @@ const { } = require('ReactNative'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.TouchHistoryMath; - \ No newline at end of file diff --git a/scripts/rollup/shims/react-native/createReactNativeComponentClass.js b/scripts/rollup/shims/react-native/createReactNativeComponentClass.js index 05dde97e39..3302f061b4 100644 --- a/scripts/rollup/shims/react-native/createReactNativeComponentClass.js +++ b/scripts/rollup/shims/react-native/createReactNativeComponentClass.js @@ -17,4 +17,3 @@ const { } = require('ReactNative'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.createReactNativeComponentClass; - \ No newline at end of file diff --git a/scripts/rollup/shims/react-native/findNodeHandle.js b/scripts/rollup/shims/react-native/findNodeHandle.js index 02030ad192..d17da1cc19 100644 --- a/scripts/rollup/shims/react-native/findNodeHandle.js +++ b/scripts/rollup/shims/react-native/findNodeHandle.js @@ -21,11 +21,10 @@ let realFindNodeHandle = null; function findNodeHandle(componentOrHandle: any): ?number { if (realFindNodeHandle === null) { - realFindNodeHandle = require('ReactNative'). - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.findNodeHandle; + realFindNodeHandle = require('ReactNative') + .__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.findNodeHandle; } return realFindNodeHandle(componentOrHandle); } module.exports = findNodeHandle; - \ No newline at end of file diff --git a/src/renderers/shared/fiber/ReactFiberErrorLogger.js b/src/renderers/shared/fiber/ReactFiberErrorLogger.js index 7eb1f746b1..093439b638 100644 --- a/src/renderers/shared/fiber/ReactFiberErrorLogger.js +++ b/src/renderers/shared/fiber/ReactFiberErrorLogger.js @@ -98,7 +98,7 @@ function logCapturedError(capturedError: CapturedError): void { exports.injection = { /** - * Display custom dialogĀ for lifecycle errors. + * Display custom dialog for lifecycle errors. * Return false to prevent default behavior of logging to console.error. */ injectDialog(fn: (e: CapturedError) => boolean) {