Files
bundler/.eslintrc.js
Alex Forshtat a1d487478c AA-41: ERC-4337 Provider, Bundler Server and a Docker Image (#1)
* Initial commit with lerna AA-4337 provider, bundler and helper contract

* Initial CircleCI workflow

* Initial commit for eslint task

* Initial bundler class decomposition

* Initial migration to commander.js

* Transaction is sent by MethodHandler

* Get transaction receipt by requestID

* Create yarn script for Flows with Hardhat-node, Bundler as separate processes

* Add server-side error handling to avoid unreadable errors (still WIP)

* Add docker step

* Added docker-compose.yml file

* Enable depcheck task
2022-08-23 16:20:21 +02:00

62 lines
1.4 KiB
JavaScript

module.exports = {
env: {
browser: true,
es6: true,
jest: true,
mocha: true,
node: true
},
globals: {
artifacts: false,
assert: false,
contract: false,
web3: false
},
extends:
[
'standard-with-typescript'
],
// This is needed to add configuration to rules with type information
parser: '@typescript-eslint/parser',
parserOptions: {
// The 'tsconfig.packages.json' is needed to add not-compiled files to the project
project: ['./tsconfig.json', './tsconfig.packages.json']
},
ignorePatterns: [
'dist/'
],
rules: {
'no-console': 'off'
},
overrides: [
{
files: [
'**/test/**/*.ts'
],
rules: {
'no-unused-expressions': 'off',
// chai assertions trigger this rule
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
}
},
{
// otherwise it will raise an error in every JavaScript file
files: ['*.ts'],
rules: {
'@typescript-eslint/prefer-ts-expect-error': 'off',
// allow using '${val}' with numbers, bool and null types
'@typescript-eslint/restrict-template-expressions': [
'error',
{
allowNumber: true,
allowBoolean: true,
allowNullish: true,
allowNullable: true
}
]
}
}
]
}