Skip to content

Commit

Permalink
Add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Oct 19, 2023
1 parent e8e734c commit 8e0ab1f
Show file tree
Hide file tree
Showing 4 changed files with 506 additions and 25 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extends:
- eslint:all
- eslint:recommended
- plugin:@typescript-eslint/recommended
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
root: true
ignorePatterns:
- typechain-types/**
rules:
no-console: off
one-var: ["error", "never"]
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import {HardhatUserConfig} from "hardhat/config";

const config: HardhatUserConfig = {
solidity: "0.8.21",
"solidity": "0.8.21"
};

export default config;
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
"cleanCompile": "yarn exec hardhat clean && yarn compile",
"compile": "yarn exec hardhat compile && yarn hooks",
"cspell": "yarn exec cspell \"**/*\"",
"fullCheck": "yarn compile && yarn lint",
"eslint": "yarn exec eslint .",
"fullCheck": "yarn compile && yarn lint && yarn tsc && yarn eslint",
"hooks": "git config core.hooksPath .githooks || true",
"lint": "yarn exec solhint 'contracts/**/*.sol'",
"no-hooks": "git config core.hooksPath .git/hooks"
"no-hooks": "git config core.hooksPath .git/hooks",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.0",
Expand All @@ -21,15 +23,18 @@
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@types/node": ">=16.0.0",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"chai": "^4.2.0",
"cspell": "^7.3.8",
"eslint": "^8.51.0",
"ethers": "^6.4.0",
"hardhat": "^2.18.1",
"hardhat-gas-reporter": "^1.0.8",
"solhint": "^3.6.2",
"solidity-coverage": "^0.8.0",
"ts-node": ">=8.0.0",
"typechain": "^8.1.0",
"typescript": ">=4.5.0"
"typescript": "^5.2.2"
}
}
Loading

0 comments on commit 8e0ab1f

Please sign in to comment.