3 Star 0 Fork 0

Gitee 极速下载/BitcoinJS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/bitcoinjs/bitcoinjs-lib
克隆/下载
eslint.config.js 2.19 KB
一键复制 编辑 原始数据 按行查看 历史
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 [...compat.extends(
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
},
languageOptions: {
globals: {
...globals.browser,
...globals.amd,
...globals.node,
},
parser: tsParser,
},
rules: {
"prettier/prettier": ["error", {
singleQuote: true,
trailingComma: "all",
endOfLine: "auto",
arrowParens: "avoid",
tabWidth: 2,
}],
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"@typescript-eslint/array-type": 0,
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"arrow-parens": "off",
curly: "off",
"no-case-declarations": "off",
quotes: "off",
"@/quotes": ["error", "single", {
avoidEscape: true,
allowTemplateLiterals: true,
}],
"prefer-rest-params": "off",
"no-bitwise": "off",
"no-console": "off",
"no-empty": ["error", {
allowEmptyCatch: true,
}],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-empty-object-type": "off",
"space-before-function-paren": "off",
},
}];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/BitcoinJS.git
git@gitee.com:mirrors/BitcoinJS.git
mirrors
BitcoinJS
BitcoinJS
master

搜索帮助