diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 0967ef424b..0000000000 --- a/.prettierrc +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000000..d2504b43d5 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "proseWrap": "never" +} diff --git a/packages/common/package.json b/packages/common/package.json index f86a96596b..e8c50adf1b 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -8,8 +8,8 @@ "license": "MIT", "private": true, "scripts": { - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\"", - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\"" + "lint:fix": "prettier --write \"**/*.{js,md,json}\"", + "lint": "prettier --check \"**/*.{js,md,json}\"" }, "devDependencies": { "detect-port": "^1.3.0", diff --git a/packages/e2e/package.json b/packages/e2e/package.json index c8518d663d..d841732f8d 100644 --- a/packages/e2e/package.json +++ b/packages/e2e/package.json @@ -8,8 +8,8 @@ "author": "Nomic Labs LLC", "license": "MIT", "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "pretest": "node prepare-tests.js", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", diff --git a/packages/hardhat-core/README.md b/packages/hardhat-core/README.md index b67ecc8f7f..86fcb83fe6 100644 --- a/packages/hardhat-core/README.md +++ b/packages/hardhat-core/README.md @@ -8,7 +8,8 @@ Developed by [Nomic Labs](https://nomiclabs.io/) and funded by an Ethereum Found Join our [Hardhat Support Discord server](https://hardhat.org/discord) to stay up to date on new releases, plugins and tutorials. -🚧 **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.** 🚧 +🚧 **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.** 🚧 ## Installation diff --git a/packages/hardhat-core/package.json b/packages/hardhat-core/package.json index f04362d229..de4b44d64e 100644 --- a/packages/hardhat-core/package.json +++ b/packages/hardhat-core/package.json @@ -26,8 +26,8 @@ "node": ">=8.2.0" }, "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && yarn lint-src && yarn lint-tests", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && yarn lint-src --fix && yarn lint-tests --fix", + "lint": "prettier --check \"**/*.{js,md,json}\" && yarn lint-src && yarn lint-tests", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && yarn lint-src --fix && yarn lint-tests --fix", "lint-src": "NODE_OPTIONS='--require ts-node/register/transpile-only' tslint --config tslint.json --project src/tsconfig.json", "lint-tests": "NODE_OPTIONS='--require ts-node/register/transpile-only' tslint --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\"", diff --git a/packages/hardhat-docker/package.json b/packages/hardhat-docker/package.json index 449724e4b7..6132e74520 100644 --- a/packages/hardhat-docker/package.json +++ b/packages/hardhat-docker/package.json @@ -13,8 +13,8 @@ "docker" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-ethers/package.json b/packages/hardhat-ethers/package.json index b73b72ce38..fa8af139e7 100644 --- a/packages/hardhat-ethers/package.json +++ b/packages/hardhat-ethers/package.json @@ -16,8 +16,8 @@ "ethers.js" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && yarn lint-src && yarn lint-tests", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && yarn lint-src --fix && yarn lint-tests --fix", + "lint": "prettier --check \"**/*.{js,md,json}\" && yarn lint-src && yarn lint-tests", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && yarn lint-src --fix && yarn lint-tests --fix", "lint-tests": "tslint --config tslint.json --project ./tsconfig.json", "lint-src": "tslint --config tslint.json --project ./src/tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", diff --git a/packages/hardhat-etherscan/package.json b/packages/hardhat-etherscan/package.json index 80e869b614..ff0e1b56f6 100644 --- a/packages/hardhat-etherscan/package.json +++ b/packages/hardhat-etherscan/package.json @@ -20,8 +20,8 @@ "etherscan" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-ganache/package.json b/packages/hardhat-ganache/package.json index 4a42837fe1..90f4230cb6 100644 --- a/packages/hardhat-ganache/package.json +++ b/packages/hardhat-ganache/package.json @@ -17,8 +17,8 @@ "testing-network" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-shorthand/package.json b/packages/hardhat-shorthand/package.json index c563dd7605..34aec03c81 100644 --- a/packages/hardhat-shorthand/package.json +++ b/packages/hardhat-shorthand/package.json @@ -17,8 +17,8 @@ "cli" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-solhint/package.json b/packages/hardhat-solhint/package.json index bb2c2f8470..e470338e7c 100644 --- a/packages/hardhat-solhint/package.json +++ b/packages/hardhat-solhint/package.json @@ -18,8 +18,8 @@ "linter" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-solpp/package.json b/packages/hardhat-solpp/package.json index 2702e7bff1..0a371bef75 100644 --- a/packages/hardhat-solpp/package.json +++ b/packages/hardhat-solpp/package.json @@ -18,8 +18,8 @@ "solpp" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-truffle4/package.json b/packages/hardhat-truffle4/package.json index ec1339fae0..52d59d72ad 100644 --- a/packages/hardhat-truffle4/package.json +++ b/packages/hardhat-truffle4/package.json @@ -17,8 +17,8 @@ "truffle-contract" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-truffle5/package.json b/packages/hardhat-truffle5/package.json index 338a456d24..e36eb98df5 100644 --- a/packages/hardhat-truffle5/package.json +++ b/packages/hardhat-truffle5/package.json @@ -17,8 +17,8 @@ "truffle-contract" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-vyper/package.json b/packages/hardhat-vyper/package.json index e0157e8c41..921d7d5231 100644 --- a/packages/hardhat-vyper/package.json +++ b/packages/hardhat-vyper/package.json @@ -16,8 +16,8 @@ "vyper" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-waffle/package.json b/packages/hardhat-waffle/package.json index 8000b77260..ec4336d5c3 100644 --- a/packages/hardhat-waffle/package.json +++ b/packages/hardhat-waffle/package.json @@ -16,8 +16,8 @@ "ethers.js" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-web3-legacy/package.json b/packages/hardhat-web3-legacy/package.json index f8cff48d48..df3ae17b28 100644 --- a/packages/hardhat-web3-legacy/package.json +++ b/packages/hardhat-web3-legacy/package.json @@ -17,8 +17,8 @@ "web3.js" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "test": "mocha --recursive \"test/**/*.ts\" --exit", "build": "tsc --build .", "clean": "rimraf dist" diff --git a/packages/hardhat-web3/package.json b/packages/hardhat-web3/package.json index 994bb6bc10..5d825cf38d 100644 --- a/packages/hardhat-web3/package.json +++ b/packages/hardhat-web3/package.json @@ -17,8 +17,8 @@ "web3.js" ], "scripts": { - "lint": "prettier --prose-wrap=never --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", - "lint:fix": "prettier --prose-wrap=never --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", + "lint": "prettier --check \"**/*.{js,md,json}\" && tslint --config tslint.json --project ./tsconfig.json", + "lint:fix": "prettier --write \"**/*.{js,md,json}\" && tslint --fix --config tslint.json --project ./tsconfig.json", "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", "build": "tsc --build .", "clean": "rimraf dist"