Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 0 additions & 99 deletions .circleci/config.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .circleci/scripts/collect-har-artifact.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .circleci/scripts/deps-install.sh

This file was deleted.

12 changes: 12 additions & 0 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"ignores": [
"@lavamoat/allow-scripts",
"@lavamoat/preinstall-always-fail",
"@metamask/auto-changelog",
"@types/*",
"@yarnpkg/types",
"prettier-plugin-packagejson",
"ts-node",
"typedoc"
]
}
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
dist
coverage
*.test.ts

tsconfig.json
tsup.config.ts
73 changes: 0 additions & 73 deletions .eslintrc

This file was deleted.

94 changes: 94 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
module.exports = {
root: true,

extends: ['@metamask/eslint-config'],

overrides: [
{
files: ['*.d.ts'],
rules: {
'import/unambiguous': 'off',
},
},
{
files: ['*.ts'],
extends: ['@metamask/eslint-config-typescript'],
},

{
files: ['*.js'],
parserOptions: {
sourceType: 'script',
},
extends: ['@metamask/eslint-config-nodejs'],
},

{
files: ['yarn.config.cjs'],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2020,
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
extends: ['@metamask/eslint-config-nodejs'],
},

{
files: ['*.test.ts', '*.test.js'],
extends: [
'@metamask/eslint-config-jest',
'@metamask/eslint-config-nodejs',
],
},
{
files: ['src/SwapsController.ts'],
rules: {
'accessor-pairs': 'off',
'consistent-return': 'off',
'no-async-promise-executor': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'no-restricted-syntax': 'off',
'import/no-named-as-default': 'off',
},
},
{
files: ['src/SwapsController.test.ts'],
rules: {
'no-new': 'off',
},
},
{
files: ['src/swapsInterfaces.ts'],
rules: {
'@typescript-eslint/naming-convention': 'off',
},
},
{
files: ['src/swapsUtil.ts'],
rules: {
'consistent-return': 'off',
'no-negated-condition': 'off',
'@typescript-eslint/naming-convention': 'off',
},
},
{
files: ['src/swapsUtil.test.ts'],
rules: {
'jest/require-to-throw-message': 'off',
'@typescript-eslint/naming-convention': 'off',
'no-restricted-globals': 'off',
},
},
],
ignorePatterns: [
'!.eslintrc.js',
'!.prettierrc.js',
'dist/',
'docs/',
'.yarn/',
],
};
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* text=auto

yarn.lock linguist-generated=false

# yarn v3
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
/.yarn/releases/** binary
/.yarn/plugins/** binary
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## **Description**

<!--
Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes:

- What is the current state of things and why does it need to change?
- What is the solution your changes offer and how does it work? -->

## **Related issues**

<!-- Are there any issues or other links reviewers should consult to understand this pull request better? For instance:
* Fixes #12345
* See: #67890
-->
Loading