mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-10-21 11:16:21 +00:00
- every matrix step (lint, test, build) must pass; nothing is allowed to fail silently - after build, scripts/check-built-manifests.py checks the package.json each build/ directory holds, which is what npm receives: entry points must exist, no ./build/ or ./cjs/cjs/ paths, no string spread into exports, no workspace:/link: ranges - the tree must be unchanged after the step: `yarn lint` runs eslint --fix and `yarn build` regenerates the augment interfaces, so both used to pass on a tree they had rewritten - the dot-notation exclusion had been renamed from kusama to zagros (no such directory) instead of dicle; with the dicle augmentation in the lint program, eslint --fix rewrote api.query['registrar'] style accesses that the build cannot compile - the four compiled-only packages (bizinikiwi-bindings, merkleize-metadata, metadata-builders, papi-utils) have no sources here and are not linted - the auto-approve and auto-merge bots are removed - .prettierrc.cjs uses @pezkuwi/dev
29 lines
853 B
JavaScript
29 lines
853 B
JavaScript
// Copyright 2017-2026 @pezkuwi/api authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import baseConfig from '@pezkuwi/dev/config/eslint';
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
// see the tsconfig.eslint.json for explanation
|
|
'packages/api-augment/src/dicle/*.ts',
|
|
'packages/api-augment/src/pezkuwi/*.ts',
|
|
// compiled packages without sources here; there is nothing to lint
|
|
'packages/bizinikiwi-bindings/**',
|
|
'packages/merkleize-metadata/**',
|
|
'packages/metadata-builders/**',
|
|
'packages/papi-utils/**'
|
|
]
|
|
},
|
|
...baseConfig,
|
|
{
|
|
rules: {
|
|
// add override for any (a metric ton of them, initial conversion)
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
// we generally use this in isFunction, not via calling
|
|
'@typescript-eslint/unbound-method': 'off'
|
|
}
|
|
}
|
|
];
|