Skip to content

Commit

Permalink
♻️ Use eslint Flat Configuration File eslint.config.js
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Feb 15, 2024
1 parent edd110d commit 2e71579
Show file tree
Hide file tree
Showing 7 changed files with 478 additions and 596 deletions.
14 changes: 0 additions & 14 deletions .eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion contracts/lib/forge-std
45 changes: 45 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const eslintConfigPrettier = require("eslint-config-prettier");
/* eslint-enable @typescript-eslint/no-var-requires */

module.exports = tseslint.config(
{
files: ["**/*.{js,ts}"],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
eslintConfigPrettier,
],
plugins: {
"@typescript-eslint": tseslint.plugin,
},
languageOptions: {
ecmaVersion: "latest",
parser: tseslint.parser,
parserOptions: {
project: true,
},
},
},
{
ignores: [
"node_modules/**",
"lib/**",
"cache/**",
"cache_hardhat/**",
"cache_hardhat-zk/**",
"artifacts/**",
"artifacts-zk/**",
"typechain-types/**",
"coverage/**",
"deployments/**",
"deployments_tenderly/**",
"forge-artifacts/**",
"bin/**",
"out/**",
],
},
);
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,15 @@
"lint:fix": "pnpm prettier:fix && pnpm solhint:fix && npx eslint \"**/*.{js,ts}\" --fix"
},
"devDependencies": {
"@eslint/js": "^8.56.0",
"@matterlabs/hardhat-zksync-deploy": "^1.1.2",
"@matterlabs/hardhat-zksync-ethers": "1.0.0",
"@matterlabs/hardhat-zksync-solc": "^1.1.2",
"@matterlabs/hardhat-zksync-verify": "^1.3.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.4",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.5",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-foundry": "^1.1.1",
"@nomicfoundation/hardhat-ledger": "^1.0.1",
"@nomicfoundation/hardhat-ledger": "^1.0.2",
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.4",
Expand All @@ -136,13 +137,11 @@
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.17",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"ethers": "^6.11.0",
"hardhat": "^2.19.5",
"ethers": "^6.11.1",
"hardhat": "^2.20.0",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.10",
Expand All @@ -153,6 +152,7 @@
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.3.3",
"typescript-eslint": "^7.0.1",
"xdeployer": "^3.0.1",
"zksync-ethers": "^6.3.0"
}
Expand Down
Loading

0 comments on commit 2e71579

Please sign in to comment.