|
| 1 | +module.exports = { |
| 2 | + env: { |
| 3 | + browser: false, |
| 4 | + es2021: true, |
| 5 | + mocha: true, |
| 6 | + node: true, |
| 7 | + }, |
| 8 | + plugins: ["@typescript-eslint", "no-only-tests", "unused-imports"], |
| 9 | + extends: ["standard", "plugin:prettier/recommended", "plugin:node/recommended"], |
| 10 | + parser: "@typescript-eslint/parser", |
| 11 | + parserOptions: { |
| 12 | + ecmaVersion: 12, |
| 13 | + warnOnUnsupportedTypeScriptVersion: false, |
| 14 | + }, |
| 15 | + rules: { |
| 16 | + "node/no-unsupported-features/es-syntax": ["error", { ignores: ["modules"] }], |
| 17 | + "node/no-missing-import": [ |
| 18 | + "error", |
| 19 | + { |
| 20 | + tryExtensions: [".ts", ".js", ".json"], |
| 21 | + }, |
| 22 | + ], |
| 23 | + "node/no-unpublished-import": [ |
| 24 | + "error", |
| 25 | + { |
| 26 | + allowModules: [ |
| 27 | + "hardhat", |
| 28 | + "ethers", |
| 29 | + "@openzeppelin/upgrades-core", |
| 30 | + "chai", |
| 31 | + "@nomicfoundation/hardhat-ethers", |
| 32 | + "@nomicfoundation/hardhat-chai-matchers", |
| 33 | + "@nomicfoundation/hardhat-verify", |
| 34 | + "@nomicfoundation/hardhat-toolbox", |
| 35 | + "@openzeppelin/hardhat-upgrades", |
| 36 | + "solidity-coverage", |
| 37 | + "hardhat-gas-reporter", |
| 38 | + "dotenv", |
| 39 | + ], |
| 40 | + }, |
| 41 | + ], |
| 42 | + "no-only-tests/no-only-tests": "error", |
| 43 | + "unused-imports/no-unused-imports": "error", |
| 44 | + "unused-imports/no-unused-vars": ["warn", { vars: "all" }], |
| 45 | + }, |
| 46 | +}; |
0 commit comments