mirror of https://github.com/status-im/metro.git
Revert D5841425: Removing unnecessary eslint enable/disable comments
Differential Revision: D5841425 fbshipit-source-id: 5a5bb73eafce9e09c89fe9f0cf57676cfc962a5a
This commit is contained in:
parent
114b00ee34
commit
522a0460a1
|
@ -10,6 +10,8 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* eslint-disable max-len */
|
||||||
|
|
||||||
const inline = require('../inline');
|
const inline = require('../inline');
|
||||||
const {transform, transformFromAst} = require('babel-core');
|
const {transform, transformFromAst} = require('babel-core');
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,11 @@ const {ModuleMap} = require('jest-haste-map');
|
||||||
|
|
||||||
import type {Moduleish} from '../../node-haste/DependencyGraph/ResolutionRequest';
|
import type {Moduleish} from '../../node-haste/DependencyGraph/ResolutionRequest';
|
||||||
import type {ResolveFn, TransformedCodeFile} from '../types.flow';
|
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 = {|
|
type ResolveOptions = {|
|
||||||
assetExts: Extensions,
|
assetExts: Extensions,
|
||||||
|
|
|
@ -121,6 +121,7 @@ describe('Resolver', function() {
|
||||||
it('passes custom platforms to the dependency graph', function() {
|
it('passes custom platforms to the dependency graph', function() {
|
||||||
expect.assertions(1);
|
expect.assertions(1);
|
||||||
return Resolver.load({
|
return Resolver.load({
|
||||||
|
// eslint-disable-line no-new
|
||||||
projectRoot: '/root',
|
projectRoot: '/root',
|
||||||
platforms: ['ios', 'windows', 'vr'],
|
platforms: ['ios', 'windows', 'vr'],
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
@ -197,6 +198,7 @@ describe('Resolver', function() {
|
||||||
it('should resolve modules', function() {
|
it('should resolve modules', function() {
|
||||||
expect.assertions(1);
|
expect.assertions(1);
|
||||||
|
|
||||||
|
/*eslint-disable */
|
||||||
var code = [
|
var code = [
|
||||||
// require
|
// require
|
||||||
'require("x")',
|
'require("x")',
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-disable strict */
|
||||||
|
|
||||||
global.__DEV__ = false;
|
global.__DEV__ = false;
|
||||||
|
|
||||||
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-disable strict */
|
||||||
|
|
||||||
global.__DEV__ = true;
|
global.__DEV__ = true;
|
||||||
|
|
||||||
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
||||||
|
|
|
@ -410,7 +410,7 @@ class OptionsHasher {
|
||||||
)}`;
|
)}`;
|
||||||
throw new CannotHashOptionsError(message);
|
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(new Buffer([+dev | (+minify << 1)]));
|
||||||
hash.update(JSON.stringify(platform));
|
hash.update(JSON.stringify(platform));
|
||||||
return this.hashTransformOptions(hash, transform);
|
return this.hashTransformOptions(hash, transform);
|
||||||
|
|
Loading…
Reference in New Issue