Skip to content

Commit 1a5cbaa

Browse files
committed
Use a prettier config file instead of passing args
1 parent a2c1ff1 commit 1a5cbaa

File tree

19 files changed

+37
-34
lines changed

19 files changed

+37
-34
lines changed

.prettierrc

-1
This file was deleted.

.prettierrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"proseWrap": "never"
3+
}

packages/common/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"license": "MIT",
99
"private": true,
1010
"scripts": {
11-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\"",
12-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\""
11+
"lint:fix": "prettier --write \"**/*.{js,md,json}\"",
12+
"lint": "prettier --check \"**/*.{js,md,json}\""
1313
},
1414
"devDependencies": {
1515
"detect-port": "^1.3.0",

packages/e2e/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"author": "Nomic Labs LLC",
99
"license": "MIT",
1010
"scripts": {
11-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
12-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
11+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
12+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
1313
"pretest": "node prepare-tests.js",
1414
"test": "mocha --recursive \"test/**/*.ts\" --exit",
1515
"build": "tsc --build .",

packages/hardhat-core/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Developed by [Nomic Labs](https://nomiclabs.io/) and funded by an Ethereum Found
88

99
Join our [Hardhat Support Discord server](https://hardhat.org/discord) to stay up to date on new releases, plugins and tutorials.
1010

11-
🚧 **You are looking at the development branch of Hardhat. For the currently released versions of Hardhat and its plugins take a look at this repository's tags.** 🚧
11+
🚧 **You are looking at the
12+
development branch of Hardhat. For the currently released versions of Hardhat and its plugins take a look at this repository's tags.** 🚧
1213

1314
## Installation
1415

packages/hardhat-core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"node": ">=8.2.0"
2727
},
2828
"scripts": {
29-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && yarn lint-src && yarn lint-tests",
30-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && yarn lint-src --fix && yarn lint-tests --fix",
29+
"lint": "prettier --check \"**/*.{js,md,json}\" && yarn lint-src && yarn lint-tests",
30+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && yarn lint-src --fix && yarn lint-tests --fix",
3131
"lint-src": "NODE_OPTIONS='--require ts-node/register/transpile-only' tslint --config tslint.json --project src/tsconfig.json",
3232
"lint-tests": "NODE_OPTIONS='--require ts-node/register/transpile-only' tslint --config tslint.json --project ./tsconfig.json",
3333
"test": "mocha --recursive \"test/**/*.ts\"",

packages/hardhat-docker/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"docker"
1414
],
1515
"scripts": {
16-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
17-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
16+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
17+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
1818
"test": "mocha --recursive \"test/**/*.ts\" --exit",
1919
"build": "tsc --build .",
2020
"clean": "rimraf dist"

packages/hardhat-ethers/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"ethers.js"
1717
],
1818
"scripts": {
19-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && yarn lint-src && yarn lint-tests",
20-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && yarn lint-src --fix && yarn lint-tests --fix",
19+
"lint": "prettier --check \"**/*.{js,md,json}\" && yarn lint-src && yarn lint-tests",
20+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && yarn lint-src --fix && yarn lint-tests --fix",
2121
"lint-tests": "tslint --config tslint.json --project ./tsconfig.json",
2222
"lint-src": "tslint --config tslint.json --project ./src/tsconfig.json",
2323
"test": "mocha --recursive \"test/**/*.ts\" --exit",

packages/hardhat-etherscan/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"etherscan"
2121
],
2222
"scripts": {
23-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
24-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
23+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
24+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2525
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2626
"build": "tsc --build .",
2727
"clean": "rimraf dist"

packages/hardhat-ganache/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"testing-network"
1818
],
1919
"scripts": {
20-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
20+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2222
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2323
"build": "tsc --build .",
2424
"clean": "rimraf dist"

packages/hardhat-shorthand/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"cli"
1818
],
1919
"scripts": {
20-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
20+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2222
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2323
"build": "tsc --build .",
2424
"clean": "rimraf dist"

packages/hardhat-solhint/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"linter"
1919
],
2020
"scripts": {
21-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
22-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
21+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
22+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2323
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2424
"build": "tsc --build .",
2525
"clean": "rimraf dist"

packages/hardhat-solpp/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"solpp"
1919
],
2020
"scripts": {
21-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
22-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
21+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
22+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2323
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2424
"build": "tsc --build .",
2525
"clean": "rimraf dist"

packages/hardhat-truffle4/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"truffle-contract"
1818
],
1919
"scripts": {
20-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
20+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2222
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2323
"build": "tsc --build .",
2424
"clean": "rimraf dist"

packages/hardhat-truffle5/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"truffle-contract"
1818
],
1919
"scripts": {
20-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
20+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2222
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2323
"build": "tsc --build .",
2424
"clean": "rimraf dist"

packages/hardhat-vyper/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"vyper"
1717
],
1818
"scripts": {
19-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
20-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
19+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
20+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2121
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2222
"build": "tsc --build .",
2323
"clean": "rimraf dist"

packages/hardhat-waffle/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"ethers.js"
1717
],
1818
"scripts": {
19-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
20-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
19+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
20+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2121
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2222
"build": "tsc --build .",
2323
"clean": "rimraf dist"

packages/hardhat-web3-legacy/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"web3.js"
1818
],
1919
"scripts": {
20-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
20+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2222
"test": "mocha --recursive \"test/**/*.ts\" --exit",
2323
"build": "tsc --build .",
2424
"clean": "rimraf dist"

packages/hardhat-web3/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"web3.js"
1818
],
1919
"scripts": {
20-
"lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21-
"lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
20+
"lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json",
21+
"lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json",
2222
"test": "mocha --recursive \"test/**/*.ts\" --exit && node web3-lazy-object-tests/when-accessing-web3-class.js && node web3-lazy-object-tests/when-accessing-web3-object.js && node web3-lazy-object-tests/when-requiring-web3-module.js",
2323
"build": "tsc --build .",
2424
"clean": "rimraf dist"

0 commit comments

Comments
 (0)