-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional Turing Example: Faucet/CAPTCHA (#97)
* move faucet to new repo * better error message * basic cleanup * visual cleanup * warning message if no ETH * request on enter, misc errors don't break anymore * Fix CAPTCHA api (#109) Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com> * call to action added Co-authored-by: wsdt <kevin.riedl.privat@gmail.com> Co-authored-by: Boyuan-Chen <46272347+Boyuan-Chen@users.noreply.github.com> (cherry picked from commit a9d4ecd)
- Loading branch information
1 parent
13327b1
commit b32aab7
Showing
73 changed files
with
37,279 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,179 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es6: true, | ||
}, | ||
ignorePatterns: ['dist', 'packages/contracts/hardhat'], | ||
extends: ['plugin:prettier/recommended'], | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
es6: true, | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'eslint-plugin-import', | ||
'eslint-plugin-unicorn', | ||
'eslint-plugin-jsdoc', | ||
'eslint-plugin-prefer-arrow', | ||
'eslint-plugin-react', | ||
'@typescript-eslint', | ||
], | ||
overrides: [ | ||
{ | ||
files: ['**/*.ts'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
'@typescript-eslint/adjacent-overload-signatures': 'error', | ||
'@typescript-eslint/array-type': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/consistent-type-assertions': 'error', | ||
'@typescript-eslint/dot-notation': 'off', | ||
'@typescript-eslint/indent': 'off', | ||
'@typescript-eslint/member-delimiter-style': [ | ||
'off', | ||
{ | ||
multiline: { | ||
delimiter: 'none', | ||
requireLast: true, | ||
}, | ||
singleline: { | ||
delimiter: 'semi', | ||
requireLast: false, | ||
}, | ||
}, | ||
], | ||
'@typescript-eslint/member-ordering': 'off', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'@typescript-eslint/no-empty-function': 'error', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-misused-new': 'error', | ||
'@typescript-eslint/no-namespace': 'error', | ||
'@typescript-eslint/no-parameter-properties': 'off', | ||
'@typescript-eslint/no-shadow': [ | ||
'error', | ||
{ | ||
hoist: 'all', | ||
}, | ||
], | ||
'@typescript-eslint/no-this-alias': 'error', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/no-var-requires': 'error', | ||
'@typescript-eslint/prefer-for-of': 'error', | ||
'@typescript-eslint/prefer-function-type': 'error', | ||
'@typescript-eslint/prefer-namespace-keyword': 'error', | ||
'@typescript-eslint/quotes': 'off', | ||
'@typescript-eslint/semi': ['off', null], | ||
'@typescript-eslint/triple-slash-reference': [ | ||
'error', | ||
{ | ||
path: 'always', | ||
types: 'prefer-import', | ||
lib: 'always', | ||
}, | ||
], | ||
'@typescript-eslint/type-annotation-spacing': 'off', | ||
'@typescript-eslint/unified-signatures': 'error', | ||
}, | ||
}, | ||
], | ||
rules: { | ||
'prettier/prettier': 'warn', | ||
'arrow-parens': ['off', 'always'], | ||
'brace-style': ['off', 'off'], | ||
'comma-dangle': 'off', | ||
complexity: 'off', | ||
'constructor-super': 'error', | ||
curly: 'error', | ||
'dot-notation': 'off', | ||
'eol-last': 'off', | ||
eqeqeq: ['error', 'smart'], | ||
'guard-for-in': 'error', | ||
'id-blacklist': 'off', | ||
'id-match': 'off', | ||
'import/no-extraneous-dependencies': ['error'], | ||
'import/no-internal-modules': 'off', | ||
'import/order': 'off', | ||
indent: 'off', | ||
'jsdoc/check-alignment': 'error', | ||
'jsdoc/check-indentation': 'error', | ||
'jsdoc/newline-after-description': 'error', | ||
'linebreak-style': 'off', | ||
'max-classes-per-file': 'off', | ||
'max-len': 'off', | ||
'new-parens': 'off', | ||
'newline-per-chained-call': 'off', | ||
'no-bitwise': 'off', | ||
'no-caller': 'error', | ||
'no-cond-assign': 'error', | ||
'no-console': 'off', | ||
'no-debugger': 'error', | ||
'no-duplicate-case': 'error', | ||
'no-duplicate-imports': 'error', | ||
'no-empty': 'error', | ||
'no-eval': 'error', | ||
'no-extra-bind': 'error', | ||
'no-extra-semi': 'off', | ||
'no-fallthrough': 'off', | ||
'no-invalid-this': 'off', | ||
'no-irregular-whitespace': 'off', | ||
'no-multiple-empty-lines': 'off', | ||
'no-new-func': 'error', | ||
'no-new-wrappers': 'error', | ||
'no-redeclare': 'warn', | ||
'no-return-await': 'error', | ||
'no-sequences': 'error', | ||
'no-sparse-arrays': 'error', | ||
'no-template-curly-in-string': 'error', | ||
'no-throw-literal': 'error', | ||
'no-trailing-spaces': 'off', | ||
'no-undef-init': 'error', | ||
'no-underscore-dangle': 'off', | ||
'no-unsafe-finally': 'error', | ||
'no-unused-expressions': 'off', | ||
'no-unused-labels': 'error', | ||
'no-use-before-define': 'off', | ||
'no-var': 'warn', | ||
'object-shorthand': 'error', | ||
'one-var': ['error', 'never'], | ||
'padded-blocks': [ | ||
'off', | ||
{ | ||
blocks: 'never', | ||
}, | ||
{ | ||
allowSingleLineBlocks: true, | ||
}, | ||
], | ||
'prefer-arrow/prefer-arrow-functions': 'warn', | ||
'prefer-const': 'error', | ||
'prefer-object-spread': 'error', | ||
'quote-props': 'off', | ||
quotes: 'off', | ||
radix: 'error', | ||
'react/jsx-curly-spacing': 'off', | ||
'react/jsx-equals-spacing': 'off', | ||
'react/jsx-tag-spacing': [ | ||
'off', | ||
{ | ||
afterOpening: 'allow', | ||
closingSlash: 'allow', | ||
}, | ||
], | ||
'react/jsx-wrap-multilines': 'off', | ||
semi: 'off', | ||
'space-before-blocks': 'error', | ||
'space-before-function-paren': 'off', | ||
'space-in-parens': ['off', 'never'], | ||
'unicorn/prefer-ternary': 'off', | ||
'use-isnan': 'error', | ||
'valid-typeof': 'off', | ||
}, | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.DS_Store | ||
node_modules | ||
results | ||
temp | ||
.nyc_output | ||
coverage.json | ||
*.tsbuildinfo | ||
env.yml | ||
.serverless | ||
.env | ||
build/ | ||
|
||
dist | ||
artifacts | ||
cache | ||
|
||
packages/contracts/deployments/custom | ||
packages/contracts/coverage* | ||
packages/contracts/@ens* | ||
packages/contracts/@openzeppelin* | ||
packages/contracts/hardhat* |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
"$schema": "http://json.schemastore.org/prettierrc", | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true, | ||
"arrowParens": "always" | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/prettierrc", | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true, | ||
"arrowParens": "always" | ||
} |
Oops, something went wrong.