-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Use
eslint
Flat Configuration File eslint.config.js
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
- Loading branch information
1 parent
edd110d
commit 2e71579
Showing
7 changed files
with
478 additions
and
596 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule forge-std
updated
2 files
+51 −33 | src/mocks/MockERC20.sol | |
+46 −32 | src/mocks/MockERC721.sol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**", | ||
], | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.