Removing unnecessary eslint enable/disable comments

Reviewed By: TheSavior

Differential Revision: D5841425

fbshipit-source-id: cf30e47e0a544230595b8298c6bca67cbee2fb08
This commit is contained in:
Sina Sabet 2017-09-19 12:47:13 -07:00 committed by Facebook Github Bot
parent ad927b93dc
commit 114b00ee34
6 changed files with 2 additions and 14 deletions

View File

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

View File

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

View File

@ -121,7 +121,6 @@ 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(() => {
@ -198,7 +197,6 @@ describe('Resolver', function() {
it('should resolve modules', function() {
expect.assertions(1);
/*eslint-disable */
var code = [
// require
'require("x")',

View File

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

View File

@ -10,8 +10,6 @@
* @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-undef, no-bitwise
// eslint-disable-next-line no-bitwise
hash.update(new Buffer([+dev | (+minify << 1)]));
hash.update(JSON.stringify(platform));
return this.hashTransformOptions(hash, transform);