Skip to content

Commit

Permalink
Use a prettier config file instead of passing args
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Jun 23, 2021
1 parent a2c1ff1 commit 1a5cbaa
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 34 deletions.
1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"proseWrap": "never"
}
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down
3 changes: 2 additions & 1 deletion packages/hardhat-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-docker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-etherscan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-ganache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-shorthand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-solhint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-solpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-truffle4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-truffle5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-vyper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-waffle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-web3-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1a5cbaa

Please sign in to comment.