-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: reorder * fix: cleanup * fix: use tsdx
- Loading branch information
Showing
202 changed files
with
39,448 additions
and
13,429 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,159 +1,168 @@ | ||
{ | ||
"root": true, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"import", | ||
"unused-imports", | ||
"prettier", | ||
"@zapper-fi" | ||
"@typescript-eslint", | ||
"import", | ||
"unused-imports", | ||
"prettier", | ||
"@zapper-fi" | ||
], | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"parserOptions": { | ||
"project": "tsconfig.json" | ||
"project": "tsconfig.json" | ||
}, | ||
"rules": { | ||
"@zapper-fi/ethereum-address": 2, | ||
"@typescript-eslint/ban-ts-comment": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/explicit-member-accessibility": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"@typescript-eslint/indent": 0, | ||
"@typescript-eslint/member-delimiter-style": 0, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-floating-promises": 1, | ||
"@typescript-eslint/no-misused-promises": 2, | ||
"@typescript-eslint/no-non-null-assertion": 0, | ||
"@typescript-eslint/no-use-before-define": 0, | ||
"@typescript-eslint/no-var-requires": 0, | ||
"prettier/prettier": 1, | ||
"unused-imports/no-unused-imports-ts": 2, | ||
"import/order": [ | ||
2, | ||
{ | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
}, | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"parent", | ||
"sibling", | ||
"index" | ||
], | ||
"pathGroups": [ | ||
{ | ||
"pattern": "react", | ||
"group": "external", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "{~*,~*/**}", | ||
"group": "internal" | ||
} | ||
], | ||
"pathGroupsExcludedImportTypes": ["builtin"], | ||
"newlines-between": "always" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
2, | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"no-console": [ | ||
2, | ||
{ | ||
"allow": ["warn", "error"] | ||
} | ||
] | ||
"@zapper-fi/ethereum-address": 2, | ||
"@typescript-eslint/ban-ts-comment": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/explicit-member-accessibility": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"@typescript-eslint/indent": 0, | ||
"@typescript-eslint/member-delimiter-style": 0, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-floating-promises": 1, | ||
"@typescript-eslint/no-misused-promises": 2, | ||
"@typescript-eslint/no-non-null-assertion": 0, | ||
"@typescript-eslint/no-use-before-define": 0, | ||
"@typescript-eslint/no-var-requires": 0, | ||
"prettier/prettier": 1, | ||
"unused-imports/no-unused-imports-ts": 2, | ||
"import/order": [ | ||
2, | ||
{ | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
}, | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"parent", | ||
"sibling", | ||
"index" | ||
], | ||
"pathGroups": [ | ||
{ | ||
"pattern": "react", | ||
"group": "external", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "{~*,~*/**}", | ||
"group": "internal" | ||
} | ||
], | ||
"pathGroupsExcludedImportTypes": ["builtin"], | ||
"newlines-between": "always" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
2, | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"no-console": [ | ||
2, | ||
{ | ||
"allow": ["warn", "error"] | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts"], | ||
"rules": { | ||
"@typescript-eslint/consistent-type-definitions": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/dot-notation": "off", | ||
"@typescript-eslint/explicit-member-accessibility": [ | ||
"off", | ||
{ | ||
"accessibility": "explicit" | ||
} | ||
], | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-empty-interface": "error", | ||
"@typescript-eslint/no-inferrable-types": [ | ||
"error", | ||
{ | ||
"ignoreParameters": true | ||
} | ||
], | ||
"@typescript-eslint/no-misused-new": "error", | ||
"@typescript-eslint/no-shadow": [ | ||
"error", | ||
{ | ||
"hoist": "all" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-expressions": "error", | ||
"@typescript-eslint/prefer-function-type": "error", | ||
"@typescript-eslint/unified-signatures": "error", | ||
"arrow-body-style": "error", | ||
"constructor-super": "error", | ||
"eqeqeq": ["error", "smart"], | ||
"guard-for-in": "error", | ||
"id-blacklist": "off", | ||
"id-match": "off", | ||
"import/no-deprecated": "warn", | ||
"import/order": "error", | ||
"no-bitwise": "error", | ||
"no-caller": "error", | ||
"no-console": [ | ||
"error", | ||
{ | ||
"allow": [ | ||
"log", | ||
"warn", | ||
"dir", | ||
"timeLog", | ||
"assert", | ||
"clear", | ||
"count", | ||
"countReset", | ||
"group", | ||
"groupEnd", | ||
"table", | ||
"dirxml", | ||
"error", | ||
"groupCollapsed", | ||
"Console", | ||
"profile", | ||
"profileEnd", | ||
"timeStamp", | ||
"context" | ||
] | ||
} | ||
], | ||
"no-debugger": "error", | ||
"no-empty": "off", | ||
"no-eval": "error", | ||
"no-fallthrough": "error", | ||
"no-new-wrappers": "error", | ||
"no-restricted-imports": ["error", "rxjs/Rx"], | ||
"no-throw-literal": "error", | ||
"no-undef-init": "error", | ||
"no-underscore-dangle": "off", | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"radix": "error" | ||
}, | ||
"plugins": ["eslint-plugin-import", "@typescript-eslint"] | ||
} | ||
{ | ||
"files": ["*.ts"], | ||
"rules": { | ||
"@typescript-eslint/consistent-type-definitions": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/dot-notation": "off", | ||
"@typescript-eslint/explicit-member-accessibility": [ | ||
"off", | ||
{ | ||
"accessibility": "explicit" | ||
} | ||
], | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-empty-interface": "error", | ||
"@typescript-eslint/no-inferrable-types": [ | ||
"error", | ||
{ | ||
"ignoreParameters": true | ||
} | ||
], | ||
"@typescript-eslint/no-misused-new": "error", | ||
"@typescript-eslint/no-shadow": [ | ||
"error", | ||
{ | ||
"hoist": "all" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-expressions": "error", | ||
"@typescript-eslint/prefer-function-type": "error", | ||
"@typescript-eslint/unified-signatures": "error", | ||
"arrow-body-style": "error", | ||
"constructor-super": "error", | ||
"eqeqeq": ["error", "smart"], | ||
"guard-for-in": "error", | ||
"id-blacklist": "off", | ||
"id-match": "off", | ||
"import/no-deprecated": "warn", | ||
"import/order": "error", | ||
"no-bitwise": "error", | ||
"no-caller": "error", | ||
"no-console": [ | ||
"error", | ||
{ | ||
"allow": [ | ||
"log", | ||
"warn", | ||
"dir", | ||
"timeLog", | ||
"assert", | ||
"clear", | ||
"count", | ||
"countReset", | ||
"group", | ||
"groupEnd", | ||
"table", | ||
"dirxml", | ||
"error", | ||
"groupCollapsed", | ||
"Console", | ||
"profile", | ||
"profileEnd", | ||
"timeStamp", | ||
"context" | ||
] | ||
} | ||
], | ||
"no-debugger": "error", | ||
"no-empty": "off", | ||
"no-eval": "error", | ||
"no-fallthrough": "error", | ||
"no-new-wrappers": "error", | ||
"no-restricted-imports": ["error", "rxjs/Rx"], | ||
"no-throw-literal": "error", | ||
"no-undef-init": "error", | ||
"no-underscore-dangle": "off", | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"radix": "error" | ||
}, | ||
"plugins": ["eslint-plugin-import", "@typescript-eslint"] | ||
} | ||
], | ||
"ignorePatterns": ["CHANGELOG.md", "build", "dist", "node_modules", "generated", "examples", "babel.config.js"] | ||
"ignorePatterns": [ | ||
"CHANGELOG.md", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"generated", | ||
"examples", | ||
"scripts", | ||
"codegen.ts" | ||
] | ||
} |
Oops, something went wrong.