Revert D5841425: Removing unnecessary eslint enable/disable comments

Differential Revision: D5841425

fbshipit-source-id: 5a5bb73eafce9e09c89fe9f0cf57676cfc962a5a
This commit is contained in:
Ian Levesque 2017-09-19 13:18:43 -07:00 committed by Facebook Github Bot
parent 114b00ee34
commit 522a0460a1
6 changed files with 14 additions and 2 deletions

View File

@ -10,6 +10,8 @@
*/
'use strict';
/* eslint-disable max-len */
const inline = require('../inline');
const {transform, transformFromAst} = require('babel-core');

View File

@ -31,7 +31,11 @@ const {ModuleMap} = require('jest-haste-map');
import type {Moduleish} from '../../node-haste/DependencyGraph/ResolutionRequest';
import type {ResolveFn, TransformedCodeFile} from '../types.flow';
import type {Extensions, Path} from './node-haste.flow';
import type {
// eslint-disable-line sort-requires
Extensions,
Path,
} from './node-haste.flow';
type ResolveOptions = {|
assetExts: Extensions,

View File

@ -121,6 +121,7 @@ describe('Resolver', function() {
it('passes custom platforms to the dependency graph', function() {
expect.assertions(1);
return Resolver.load({
// eslint-disable-line no-new
projectRoot: '/root',
platforms: ['ios', 'windows', 'vr'],
}).then(() => {
@ -197,6 +198,7 @@ describe('Resolver', function() {
it('should resolve modules', function() {
expect.assertions(1);
/*eslint-disable */
var code = [
// require
'require("x")',

View File

@ -10,6 +10,8 @@
* @format
*/
/* eslint-disable strict */
global.__DEV__ = false;
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow

View File

@ -10,6 +10,8 @@
* @format
*/
/* eslint-disable strict */
global.__DEV__ = true;
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow

View File

@ -410,7 +410,7 @@ class OptionsHasher {
)}`;
throw new CannotHashOptionsError(message);
}
// eslint-disable-next-line no-bitwise
// eslint-disable-next-line no-undef, no-bitwise
hash.update(new Buffer([+dev | (+minify << 1)]));
hash.update(JSON.stringify(platform));
return this.hashTransformOptions(hash, transform);