Skip to content

Commit

Permalink
Upgrade eslint package
Browse files Browse the repository at this point in the history
  • Loading branch information
evercoinx committed Sep 24, 2024
1 parent 9e2c7c4 commit ca83eb3
Show file tree
Hide file tree
Showing 10 changed files with 795 additions and 2,156 deletions.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

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

This file was deleted.

37 changes: 37 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// eslint-disable-next-line no-undef,@typescript-eslint/no-require-imports
const eslint = require("@eslint/js");
// eslint-disable-next-line no-undef,@typescript-eslint/no-require-imports
const tseslint = require("typescript-eslint");
// eslint-disable-next-line no-undef,@typescript-eslint/no-require-imports
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");

// eslint-disable-next-line no-undef
module.exports = tseslint.config(
{
ignores: [
".openzeppelin/*",
"artifacts/*",
"cache/*",
"contracts/*",
"coverage/*",
"crytic-corpus/*",
"crytic-export/*",
"node_modules/*",
"typechain-types/*",
],
},
eslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
eslintPluginPrettierRecommended,
{
rules: {
"@typescript-eslint/no-unused-expressions": "off",
},
languageOptions: {
parserOptions: {
warnOnUnsupportedTypeScriptVersion: false,
},
},
}
);
Loading

0 comments on commit ca83eb3

Please sign in to comment.