mirror of
https://github.com/zoo-labs/uni-v4-subgraph.git
synced 2026-11-02 18:29:34 +00:00
* v4 init * remove unused lines * fix lint errors * fix(lint): auto-fix [ci] * more cleanup * fix(lint): auto-fix [ci] * more clean * fix(lint): auto-fix [ci] * save hooks * remove unsed code * fix(lint): auto-fix [ci] * fix liq amount bug * chore: add pre-commit lint checks * address comments * clean * set roundup flag true for amounts * lint * address comments * fix lint --------- Co-authored-by: matteenm <[email protected]>
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
require('@uniswap/eslint-config/load')
|
|
|
|
module.exports = {
|
|
extends: ['@uniswap/eslint-config/node'],
|
|
rules: {
|
|
'@typescript-eslint/no-inferrable-types': 'off',
|
|
'import/no-unused-modules': 'off',
|
|
'@typescript-eslint/no-restricted-imports': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' },
|
|
],
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/ban-types': [
|
|
'error',
|
|
{
|
|
types: {
|
|
// Allow BigInt (uppercase)
|
|
BigInt: false,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['tests/**/*.ts'],
|
|
settings: {
|
|
jest: {
|
|
version: 26,
|
|
},
|
|
// jest is added as a plugin in our org's eslint config, but we use
|
|
// matchstick, and this would crash when linting matchstick files.
|
|
'disable/plugins': ['jest'],
|
|
},
|
|
},
|
|
],
|
|
}
|