Skip to content

Commit

Permalink
style(lint): change double quotes to single quotes
Browse files Browse the repository at this point in the history
To conform to the new prettier setting, change double quotes to single quotes.
  • Loading branch information
GabeDuarteM committed Sep 16, 2018
1 parent 3a0f424 commit 59f0d59
Show file tree
Hide file tree
Showing 28 changed files with 382 additions and 382 deletions.
2 changes: 1 addition & 1 deletion babel.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("./build/config/babelrc")
module.exports = require('./build/config/babelrc')
2 changes: 1 addition & 1 deletion eslint.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("./build/config/eslintrc")
module.exports = require('./build/config/eslintrc')
2 changes: 1 addition & 1 deletion prettier.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("./build/config/prettierrc")
module.exports = require('./build/config/prettierrc')
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("./src/config/releaserc")
module.exports = require('./src/config/releaserc')
2 changes: 1 addition & 1 deletion semver.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("./build/config/releaserc")
module.exports = require('./build/config/releaserc')
2 changes: 1 addition & 1 deletion src/@types/simple-git/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "simple-git"
declare module 'simple-git'
2 changes: 1 addition & 1 deletion src/@types/yargs-parser/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "yargs-parser"
declare module 'yargs-parser'
4 changes: 2 additions & 2 deletions src/config/babel-transform.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check

const babelJest = require("babel-jest") // eslint-disable-line import/no-extraneous-dependencies
const babelJest = require('babel-jest') // eslint-disable-line import/no-extraneous-dependencies

module.exports = babelJest.createTransformer({
presets: [require.resolve("./babelrc")],
presets: [require.resolve('./babelrc')],
})
16 changes: 8 additions & 8 deletions src/config/babelrc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
// @ts-check

const isTest = (process.env.BABEL_ENV || process.env.NODE_ENV) === "test"
const isTest = (process.env.BABEL_ENV || process.env.NODE_ENV) === 'test'

const envTargets = isTest ? { node: "current" } : { node: "8" }
const envTargets = isTest ? { node: 'current' } : { node: '8' }
const envOptions = { modules: false, loose: true, targets: envTargets }

module.exports = () => ({
presets: [
require.resolve("@babel/preset-typescript"),
[require.resolve("@babel/preset-env"), envOptions],
require.resolve('@babel/preset-typescript'),
[require.resolve('@babel/preset-env'), envOptions],
],
plugins: [
[
require.resolve("@babel/plugin-proposal-class-properties"),
require.resolve('@babel/plugin-proposal-class-properties'),
{ loose: true },
],
[
require.resolve("@babel/plugin-proposal-object-rest-spread"),
require.resolve('@babel/plugin-proposal-object-rest-spread'),
{ loose: true },
],
require.resolve("babel-plugin-minify-dead-code-elimination"),
require.resolve('babel-plugin-minify-dead-code-elimination'),
[
require.resolve("@babel/plugin-transform-modules-commonjs"),
require.resolve('@babel/plugin-transform-modules-commonjs'),
{ loose: true },
],
],
Expand Down
Loading

0 comments on commit 59f0d59

Please sign in to comment.