Skip to content

Commit

Permalink
♻️ Use New eslint Flat Configuration File eslint.config.js (#205)
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio authored Feb 13, 2024
1 parent c20ec09 commit bae6869
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 28 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

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

This file was deleted.

31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const eslint = require("@eslint/js");
const eslintConfigPrettier = require("eslint-config-prettier");

module.exports = [
eslint.configs.recommended,
eslintConfigPrettier,
{
files: ["**/*.js"],
languageOptions: {
sourceType: "commonjs",
ecmaVersion: "latest",
},
},
{
ignores: [
"node_modules/**",
"lib/murky/**",
"lib/solady/**",
"lib/solmate/**",
"lib/prb-test/**",
"lib/forge-std/**",
"lib/create-util/**",
"lib/erc4626-tests/**",
"lib/solidity-bytes-utils/**",
"lib/openzeppelin-contracts/**",
"cache/**",
"out/**",
"dist/**",
],
},
];
2 changes: 1 addition & 1 deletion lib/create-util
2 changes: 1 addition & 1 deletion lib/forge-std
Submodule forge-std updated 1 files
+1 −1 src/StdJson.sol
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"prettier:fix": "npx prettier -w \"**/*.{md,sol,js,json,yml,yaml}\"",
"solhint:check": "npx solhint \"**/*.sol\"",
"solhint:fix": "npx solhint \"**/*.sol\" --fix",
"lint:check": "pnpm prettier:check && pnpm solhint:check && npx eslint --ext .js .",
"lint:fix": "pnpm prettier:fix && pnpm solhint:fix && npx eslint --ext .js . --fix"
"lint:check": "pnpm prettier:check && pnpm solhint:check && npx eslint .",
"lint:fix": "pnpm prettier:fix && pnpm solhint:fix && npx eslint . --fix"
},
"files": [
"src/**/*.vy",
Expand All @@ -36,6 +36,7 @@
"CHANGELOG.md"
],
"devDependencies": {
"@eslint/js": "^8.56.0",
"@openzeppelin/merkle-tree": "^1.0.6",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bae6869

Please sign in to comment.