Files
eth-json-rpc-middleware/.eslintrc.js
Elliot Winkler c969a6f678 Apply standardizations from module template (#145)
* Upgrade to Yarn 3.x
* Move test files into `src/` instead of keeping them in `test/`
* Convert Jest config file back to JavaScript
* Add `eslint-plugin-jest` to lint pipeline, and correct issues
* Extract build-only config from `tsconfig.json`
* Standardize `package.json`
  * Don't add `jest-it-up` to the `test` command because there is
    currently an inconsistency between different Node versions (14.x and
    16.x) which may have to do with global `fetch`
* Upgrade `@metamask/allow-scripts` to 2.x
* Upgrade `@metamask/utils` to ^3.0.3
2022-09-29 11:07:10 -06:00

39 lines
750 B
JavaScript

module.exports = {
root: true,
extends: ['@metamask/eslint-config'],
overrides: [
{
files: ['*.ts'],
extends: ['@metamask/eslint-config-typescript'],
},
{
files: ['*.js'],
parserOptions: {
sourceType: 'script',
},
extends: ['@metamask/eslint-config-nodejs'],
},
{
files: ['*.test.ts', '*.test.js'],
extends: ['@metamask/eslint-config-jest'],
rules: {
'jest/expect-expect': [
'error',
{
assertFunctionNames: [
'expect',
'expectProviderRequestNotToHaveBeenMade',
],
},
],
},
},
],
ignorePatterns: ['!.eslintrc.js', '!.prettierrc.js', 'dist/'],
};