2 Star 0 Fork 0

mirrors_hyperledger/iroha-javascript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
extends: ['alloy', 'alloy/typescript'],
parserOptions: {
project: './tsconfig.eslint.json',
},
rules: {
'no-promise-executor-return': 'off',
'spaced-comment': ['error', 'always', { markers: ['/'] }],
'sort-imports': [
'warn',
{
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
allowSeparatedGroups: false,
},
],
},
globals: {
BigInt: true,
globalThis: true
},
overrides: [
{
files: ['**/test/integration/test-web/cypress/**/*.{js,ts}'],
plugins: ['cypress'],
env: {
'cypress/globals': true,
},
},
// ESLint Vue from web tests
{
files: ['**/packages/client/test/integration/test-web/src/**/*.vue'],
extends: [
'plugin:vue/vue3-recommended',
// no real need to apply type checked linting rules for integration tests
'plugin:@typescript-eslint/disable-type-checked',
],
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.vue'],
},
rules: {
'vue/html-indent': ['warn', 2],
},
},
// Jakefiles
{
files: ['packages/crypto/etc/jakefile.ts', 'etc/jakefile.ts'],
globals: {
desc: true,
task: true,
namespace: true,
},
},
],
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_hyperledger/iroha-javascript.git
git@gitee.com:mirrors_hyperledger/iroha-javascript.git
mirrors_hyperledger
iroha-javascript
iroha-javascript
main

搜索帮助