mirror of https://github.com/status-im/metro.git
Removing unnecessary eslint enable/disable comments
Reviewed By: TheSavior Differential Revision: D5841425 fbshipit-source-id: cf30e47e0a544230595b8298c6bca67cbee2fb08
This commit is contained in:
parent
ad927b93dc
commit
114b00ee34
|
@ -10,8 +10,6 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable max-len */
|
||||
|
||||
const inline = require('../inline');
|
||||
const {transform, transformFromAst} = require('babel-core');
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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")',
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
* @format
|
||||
*/
|
||||
|
||||
/* eslint-disable strict */
|
||||
|
||||
global.__DEV__ = false;
|
||||
|
||||
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
* @format
|
||||
*/
|
||||
|
||||
/* eslint-disable strict */
|
||||
|
||||
global.__DEV__ = true;
|
||||
|
||||
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue