Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 1973611

Browse files
committed
bump eslint plugin and use eslint instead of prettier
1 parent 86f0a33 commit 1973611

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

index.js

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const defaultOptions = {
1717
browserifyOptions: {
1818
extensions: ['.js', '.jsx', '.coffee', '.cjsx'],
1919
transform: [
20-
[require.resolve('./cjsxify'), {}],
20+
[
21+
require.resolve('./cjsxify'),
22+
{},
23+
],
2124
[
2225
require.resolve('babelify'),
2326
{
@@ -27,9 +30,7 @@ const defaultOptions = {
2730
plugins: ['babel-plugin-add-module-exports'].map(require.resolve),
2831
// babel-preset-env supports any JS that's stage-4, meaning it's
2932
// completely finalized in the ECMA standard
30-
presets: ['babel-preset-env', 'babel-preset-react'].map(
31-
require.resolve
32-
),
33+
presets: ['babel-preset-env', 'babel-preset-react'].map(require.resolve),
3334
},
3435
],
3536
],
@@ -60,16 +61,8 @@ const preprocessor = (options = {}) => {
6061
log('received user options', options)
6162

6263
// allow user to override default options
63-
const browserifyOptions = Object.assign(
64-
{},
65-
defaultOptions.browserifyOptions,
66-
options.browserifyOptions
67-
)
68-
const watchifyOptions = Object.assign(
69-
{},
70-
defaultOptions.watchifyOptions,
71-
options.watchifyOptions
72-
)
64+
const browserifyOptions = Object.assign({}, defaultOptions.browserifyOptions, options.browserifyOptions)
65+
const watchifyOptions = Object.assign({}, defaultOptions.watchifyOptions, options.watchifyOptions)
7366

7467
// we return function that accepts the arguments provided by
7568
// the event 'file:preprocessor'
@@ -171,8 +164,8 @@ const preprocessor = (options = {}) => {
171164
})
172165

173166
const bundlePromise = fs
174-
.ensureDirAsync(path.dirname(outputPath))
175-
.then(bundle)
167+
.ensureDirAsync(path.dirname(outputPath))
168+
.then(bundle)
176169

177170
// cache the bundle promise, so it can be returned if this function
178171
// is invoked again with the same filePath

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"ban": "ban",
2727
"deps": "deps-ok && dependency-check --no-dev .",
2828
"license": "license-checker --production --onlyunknown --csv",
29-
"lint": "prettier-eslint --write '*.js'",
29+
"lint": "eslint --fix *.js",
3030
"secure": "nsp check",
3131
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
3232
"pretest": "npm run lint",
@@ -44,14 +44,13 @@
4444
"deps-ok": "1.2.1",
4545
"dont-crack": "1.2.1",
4646
"eslint": "4.6.1",
47-
"eslint-plugin-cypress-dev": "1.0.2",
47+
"eslint-plugin-cypress-dev": "1.1.0",
4848
"eslint-plugin-mocha": "4.11.0",
4949
"github-post-release": "1.13.1",
5050
"license-checker": "13.0.3",
5151
"mocha": "3.5.0",
5252
"mockery": "2.1.0",
5353
"nsp": "2.7.0",
54-
"prettier-eslint-cli": "4.4.0",
5554
"semantic-release": "8.2.0",
5655
"simple-commit-message": "3.3.1",
5756
"sinon": "3.2.1",

0 commit comments

Comments
 (0)