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

0 commit comments

Comments
 (0)