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';
|
'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,11 +31,7 @@ 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 {
|
import type {Extensions, Path} from './node-haste.flow';
|
||||||
// eslint-disable-line sort-requires
|
|
||||||
Extensions,
|
|
||||||
Path,
|
|
||||||
} from './node-haste.flow';
|
|
||||||
|
|
||||||
type ResolveOptions = {|
|
type ResolveOptions = {|
|
||||||
assetExts: Extensions,
|
assetExts: Extensions,
|
||||||
|
|
|
@ -121,7 +121,6 @@ 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(() => {
|
||||||
|
@ -198,7 +197,6 @@ 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,8 +10,6 @@
|
||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable strict */
|
|
||||||
|
|
||||||
global.__DEV__ = false;
|
global.__DEV__ = false;
|
||||||
|
|
||||||
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
* @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-undef, no-bitwise
|
// eslint-disable-next-line 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