-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Updated packages; add EssentialWeb3 for backward compatibility
- Loading branch information
1 parent
2d2e5df
commit 9fe61fa
Showing
88 changed files
with
7,416 additions
and
9,164 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
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,90 @@ | ||
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat"; | ||
import _import from "eslint-plugin-import"; | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import globals from "globals"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [{ | ||
ignores: ["scripts/*", "**/esbuild-hook.js"], | ||
}, ...fixupConfigRules(compat.extends( | ||
"eslint:recommended", | ||
"plugin:eslint-comments/recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"plugin:@typescript-eslint/strict", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"prettier", | ||
)), { | ||
plugins: { | ||
import: fixupPluginRules(_import), | ||
"@typescript-eslint": fixupPluginRules(typescriptEslint), | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
|
||
parser: tsParser, | ||
ecmaVersion: 5, | ||
sourceType: "commonjs", | ||
|
||
parserOptions: { | ||
project: "./tsconfig.lint.json", | ||
}, | ||
}, | ||
|
||
settings: { | ||
"import/resolver": { | ||
typescript: { | ||
project: "tsconfig.json", | ||
}, | ||
}, | ||
}, | ||
|
||
rules: { | ||
"import/order": ["error", { | ||
alphabetize: { | ||
order: "asc", | ||
caseInsensitive: true, | ||
}, | ||
}], | ||
|
||
"import/no-extraneous-dependencies": "error", | ||
"import/no-mutable-exports": "error", | ||
"import/no-unused-modules": "error", | ||
|
||
"@typescript-eslint/no-unused-vars": ["warn", { | ||
varsIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^ignore" | ||
}], | ||
|
||
"eslint-comments/no-unlimited-disable": "off", | ||
"eslint-comments/disable-enable-pair": "off", | ||
"@typescript-eslint/ban-tslint-comment": "off", | ||
"@typescript-eslint/ban-ts-comment": ["warn", { | ||
minimumDescriptionLength: 3, | ||
}], | ||
|
||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
}, | ||
}]; |
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.