Skip to content

Commit 38b17f3

Browse files
authored
chore: pass --fix to the eslint command rather than npm (#2495)
1 parent 6dcc2bf commit 38b17f3

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

packages/async-rewriter2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"compile": "node bin/make-runtime-support.js --firstpass && tsc -p tsconfig.json && node bin/make-runtime-support.js --secondpass && tsc -p tsconfig.json",
1818
"prepublish": "npm run compile",
1919
"prettier": "prettier",
20-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
20+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2121
},
2222
"bin": {
2323
"async-rewrite": "bin/async-rewrite.js"

packages/autocomplete/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"compile": "tsc -p tsconfig.json",
2929
"prepublish": "npm run compile",
3030
"prettier": "prettier",
31-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
31+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
3232
},
3333
"mongosh": {
3434
"unitTestsOnly": true

packages/browser-repl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"depcheck": "depcheck",
3636
"compile": "tsc -p tsconfig.json",
3737
"prettier": "prettier",
38-
"reformat": "npm run prettier -- --write . && npm run eslint --fix",
38+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix",
3939
"sync-to-compass": "node scripts/sync-to-compass.js"
4040
},
4141
"config": {

packages/browser-runtime-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"prepublish": "npm run compile",
2828
"compile": "tsc -p tsconfig.json",
2929
"prettier": "prettier",
30-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
30+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
3131
},
3232
"author": "",
3333
"license": "Apache-2.0",

packages/browser-runtime-electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"prepublish": "npm run compile",
2828
"compile": "tsc -p tsconfig.json",
2929
"prettier": "prettier",
30-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
30+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
3131
},
3232
"author": "",
3333
"license": "Apache-2.0",

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"publish": "ts-node src/index.ts publish",
3131
"bump-auxiliary": "ts-node src/index.ts bump --auxiliary",
3232
"publish-auxiliary": "ts-node src/index.ts publish --auxiliary",
33-
"reformat": "npm run prettier -- --write . && npm run eslint --fix",
33+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix",
3434
"update-cta": "ts-node src/index.ts update-cta"
3535
},
3636
"license": "Apache-2.0",

packages/cli-repl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"webpack-build-dev": "npm run compile && webpack --mode development && cat dist/add-module-mapping.js >> dist/mongosh.js",
3737
"start-snapshot": "rm -f snapshot.blob && node --snapshot-blob snapshot.blob --build-snapshot dist/mongosh.js && node --snapshot-blob snapshot.blob dist/mongosh.js",
3838
"prettier": "prettier",
39-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
39+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
4040
},
4141
"license": "Apache-2.0",
4242
"publishConfig": {

packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"check": "npm run lint && npm run depcheck",
2121
"depcheck": "depcheck",
2222
"prettier": "prettier",
23-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
23+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2424
},
2525
"license": "Apache-2.0",
2626
"engines": {

packages/editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"compile": "tsc -p tsconfig.json",
2323
"prepublish": "npm run compile",
2424
"prettier": "prettier",
25-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
25+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2626
},
2727
"license": "Apache-2.0",
2828
"publishConfig": {

packages/errors/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"prepublish": "npm run compile",
3030
"generate-error-overview": "ts-node scripts/extract-errors.ts .. generated/error-overview.md generated/error-overview.rst && npm run reformat",
3131
"prettier": "prettier",
32-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
32+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
3333
},
3434
"mongosh": {
3535
"unitTestsOnly": true

packages/history/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"compile": "tsc -p tsconfig.json",
2323
"prepublish": "npm run compile",
2424
"prettier": "prettier",
25-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
25+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2626
},
2727
"license": "Apache-2.0",
2828
"publishConfig": {

packages/i18n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"check": "npm run lint && npm run depcheck",
2424
"depcheck": "depcheck",
2525
"prettier": "prettier",
26-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
26+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2727
},
2828
"license": "Apache-2.0",
2929
"publishConfig": {

packages/js-multiline-to-singleline/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"compile": "tsc -p tsconfig.json",
2323
"prepublish": "npm run compile",
2424
"prettier": "prettier",
25-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
25+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2626
},
2727
"license": "Apache-2.0",
2828
"publishConfig": {

packages/logging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"compile": "tsc -p tsconfig.json",
4949
"prepublish": "npm run compile",
5050
"prettier": "prettier",
51-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
51+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
5252
},
5353
"mongosh": {
5454
"unitTestsOnly": true

packages/node-runtime-worker-thread/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"compile": "tsc -p tsconfig.json",
3232
"prepublish": "npm run webpack-build && npm run create-purls-file",
3333
"prettier": "prettier",
34-
"reformat": "npm run prettier -- --write . && npm run eslint --fix",
34+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix",
3535
"create-purls-file": "npm run write-node-js-dep && node ../../scripts/create-purls.js .sbom/dependencies.json .sbom/node-js-dep.json > dist/purls.txt",
3636
"write-node-js-dep": "mkdir -p .sbom && node ../../scripts/write-nodejs-dep > .sbom/node-js-dep.json"
3737
},

packages/service-provider-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"check": "npm run lint && npm run depcheck",
2424
"depcheck": "depcheck",
2525
"prettier": "prettier",
26-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
26+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2727
},
2828
"license": "Apache-2.0",
2929
"publishConfig": {

packages/service-provider-node-driver/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"check": "npm run lint && npm run depcheck",
2424
"depcheck": "depcheck",
2525
"prettier": "prettier",
26-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
26+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2727
},
2828
"license": "Apache-2.0",
2929
"publishConfig": {

packages/shell-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"test-apistrict-ci": "cross-env MONGOSH_TEST_FORCE_API_STRICT=1 npm run test-ci",
3939
"prepublish": "npm run compile",
4040
"prettier": "prettier",
41-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
41+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
4242
},
4343
"license": "Apache-2.0",
4444
"publishConfig": {

packages/shell-evaluator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"compile": "tsc -p tsconfig.json",
1616
"prepublish": "npm run compile",
1717
"prettier": "prettier",
18-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
18+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
1919
},
2020
"config": {
2121
"unsafe-perm": true

packages/snippet-manager/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"compile": "tsc -p tsconfig.json",
2323
"prepublish": "npm run compile",
2424
"prettier": "prettier",
25-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
25+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
2626
},
2727
"license": "Apache-2.0",
2828
"publishConfig": {

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
3030
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
3131
"prettier": "prettier",
32-
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
32+
"reformat": "npm run prettier -- --write . && npm run eslint -- --fix"
3333
},
3434
"bugs": {
3535
"url": "https://github.com/mongodb-js/mongosh/issues"

0 commit comments

Comments
 (0)