Skip to content

Commit

Permalink
Require newlines after requires. Fix existing
Browse files Browse the repository at this point in the history
  • Loading branch information
wbinnssmith committed Mar 13, 2019
1 parent fa3bb81 commit 8b8e900
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/core/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ let cliOpts = {
watch: program.watch
};
let Parcel = require('.').default;

let parcel = new Parcel({
entries,
cliOpts
Expand Down
1 change: 1 addition & 0 deletions packages/core/core/test/TransformerRunner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Config from '../src/Config';
import Environment from '../src/Environment';

const config = require('@parcel/config-default');

const runner = new TransformerRunner({
config: new Config(config, require.resolve('@parcel/config-default')),
cliOpts: {}
Expand Down
1 change: 1 addition & 0 deletions packages/core/integration-tests/test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const {sleep} = require('@parcel/test-utils');
const defaultConfig = require('@parcel/config-default');

const chalk = new (require('chalk')).constructor({enabled: true});

const warning = chalk.keyword('orange');
// eslint-disable-next-line no-console
console.warn = (...args) => {
Expand Down
1 change: 1 addition & 0 deletions packages/core/parcel-bundler/src/assets/RustAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');
const commandExists = require('command-exists');
const childProcess = require('child_process');
const {promisify} = require('@parcel/utils');

const exec = promisify(childProcess.execFile);
const toml = require('@iarna/toml');
const fs = require('@parcel/fs');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const fs = require('@parcel/fs');

const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
const ENV_PLUGINS = require('@babel/preset-env/data/plugins');

const ENV_PRESETS = {
es2015: true,
es2016: true,
Expand Down
1 change: 1 addition & 0 deletions packages/core/parcel-bundler/test/autoinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const install = require('../src/utils/installPackage');
const fs = require('@parcel/fs');
const {ncp, rimraf} = require('./utils');
const path = require('path');

const inputDirPath = path.join(__dirname, '/input');

describe('autoinstall', function() {
Expand Down
1 change: 1 addition & 0 deletions packages/core/parcel-bundler/test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const rimraf = promisify(require('rimraf'));
const ncp = promisify(require('ncp'));

const chalk = new (require('chalk')).constructor({enabled: true});

const warning = chalk.keyword('orange');
// eslint-disable-next-line no-console
console.warn = (...args) => {
Expand Down
1 change: 1 addition & 0 deletions packages/dev/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
},
rules: {
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-self-import': 'error'
}
Expand Down

0 comments on commit 8b8e900

Please sign in to comment.