mirror of
https://github.com/getwax/bundler.git
synced 2026-01-08 23:28:10 -05:00
* 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
62 lines
1.4 KiB
JavaScript
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
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|