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 2a533cb
Show file tree
Hide file tree
Showing 11 changed files with 799 additions and 2,159 deletions.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

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

This file was deleted.

7 changes: 4 additions & 3 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// eslint-disable-next-line no-undef
module.exports = {
configureYulOptimizer: true,
network: "hardhat",
skipFiles: ["interfaces/", "lib/", "mocks/", "state-transfer/", "tunnel/"],
configureYulOptimizer: true,
network: "hardhat",
skipFiles: ["interfaces/", "lib/", "mocks/", "state-transfer/", "tunnel/"],
};
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 2a533cb

Please sign in to comment.