Commit 35c846a5 authored by Liam Horne's avatar Liam Horne

build: set up lint:fix to use eslint not prettier

parent 6fbdcd24
......@@ -7,7 +7,7 @@
"license": "MIT",
"scripts": {
"lint": "yarn lint:fix && yarn lint:check",
"lint:fix": "prettier --config ./.prettierrc.js --write 'test/**/*.ts'",
"lint:fix": "yarn lint:check --fix",
"lint:check": "eslint -c .eslintrc.js --ext .ts .",
"build:integration": "./scripts/build.sh",
"build:contracts": "hardhat compile",
......
......@@ -14,7 +14,7 @@
"clean": "rimraf cache/ dist/ ./tsconfig.build.tsbuildinfo",
"lint": "yarn lint:fix && yarn lint:check",
"pre-commit": "lint-staged",
"lint:fix": "prettier --config .prettierrc.js --write \"hardhat.config.ts\" \"{src,exec,test}/**/*.ts\"",
"lint:fix": "yarn lint:check --fix",
"lint:check": "eslint -c .eslintrc.js --ext .ts .",
"test": "hardhat test --show-stack-traces"
},
......
......@@ -12,11 +12,11 @@
"all": "yarn clean && yarn build && yarn test && yarn lint:fix && yarn lint",
"build": "tsc -p tsconfig.build.json",
"clean": "rimraf dist/ ./tsconfig.build.tsbuildinfo",
"lint:check": "eslint -c .eslintrc.js --ext .ts .",
"lint:fix": "yarn lint:check --fix",
"lint": "yarn lint:fix && yarn lint:check",
"test": "ts-mocha test/*.spec.ts",
"pre-commit": "lint-staged",
"lint:fix": "prettier --config .prettierrc.js --write '{src,test}/**/*.ts'",
"lint:check": "eslint -c .eslintrc.js --ext .ts ."
"test": "ts-mocha test/*.spec.ts"
},
"devDependencies": {
"@types/chai": "^4.2.18",
......
......@@ -14,9 +14,9 @@
"build": "tsc -p tsconfig.build.json",
"clean": "rimraf dist/ ./tsconfig.build.tsbuildinfo",
"lint": "yarn lint:fix && yarn lint:check",
"pre-commit": "lint-staged",
"lint:fix": "prettier --config .prettierrc.js --write '{src,test}/**/*.ts'",
"lint:check": "eslint -c .eslintrc.js --ext .ts .",
"lint:fix": "yarn lint:check --fix",
"pre-commit": "lint-staged",
"test": "ts-mocha test/**/*.spec.ts"
},
"devDependencies": {
......
......@@ -13,7 +13,7 @@
"clean": "rimraf ./dist ./tsconfig.build.tsbuildinfo",
"clean:db": "rimraf ./db",
"lint": "yarn run lint:fix && yarn run lint:check",
"lint:fix": "prettier --config .prettierrc.js --write \"{src,exec,test}/**/*.ts\"",
"lint:fix": "yarn lint:check --fix",
"lint:check": "eslint -c .eslintrc.js --ext .ts .",
"start": "ts-node ./src/services/run.ts",
"start:local": "ts-node ./src/services/run.ts | pino-pretty",
......
......@@ -12,9 +12,9 @@
"clean": "rimraf tsconfig.build.tsbuildinfo dist",
"build": "tsc -p tsconfig.build.json",
"lint": "yarn run lint:fix && yarn run lint:check",
"lint:check": "eslint -c .eslintrc.js --ext .ts .",
"pre-commit": "lint-staged",
"lint:fix": "prettier --config .prettierrc.js --write \"{src,test}/**/*.ts\""
"lint:fix": "yarn lint:check --fix",
"lint:check": "eslint -c .eslintrc.js --ext .ts ."
},
"dependencies": {
"node-fetch": "^2.6.1"
......
......@@ -16,7 +16,7 @@
"clean": "rimraf dist/ ./tsconfig.build.tsbuildinfo",
"lint": "yarn lint:fix && yarn lint:check",
"pre-commit": "lint-staged",
"lint:fix": "prettier --config .prettierrc.js --write \"{src,exec,test}/**/*.ts\"",
"lint:fix": "yarn lint:check --fix",
"lint:check": "eslint -c .eslintrc.js --ext .ts .",
"test": "hardhat test --show-stack-traces"
},
......
......@@ -13,7 +13,7 @@
"test": "hardhat test --show-stack-traces",
"lint": "yarn lint:fix && yarn lint:check",
"pre-commit": "lint-staged",
"lint:fix": "prettier --config ./.prettierrc.js --write \"hardhat.config.ts\" \"{src,test}/**/*.ts\"",
"lint:fix": "yarn lint:check --fix",
"lint:check": "eslint -c .eslintrc.js --ext .ts .",
"clean": "rimraf ./artifacts ./cache ./dist ./tsconfig.build.tsbuildinfo"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment