Skip to content

Commit

Permalink
Merge branch 'new_relayer_events' of github.com:taikoxyz/taiko-mono i…
Browse files Browse the repository at this point in the history
…nto new_relayer_events
  • Loading branch information
cyberhorsey committed Mar 10, 2023
2 parents 52eb14a + a367083 commit c18afdd
Show file tree
Hide file tree
Showing 128 changed files with 3,914 additions and 3,447 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh"

pnpm --filter "@taiko/protocol" lint-staged
pnpm --filter "@taiko/bridge-ui" lint-staged
12 changes: 6 additions & 6 deletions packages/bridge-ui/.babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"presets": [["@babel/preset-env", {"targets": {"node": "current"}}]],
"env": {
"test": {
"plugins": ["transform-es2015-modules-commonjs"]
}
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]],
"env": {
"test": {
"plugins": ["transform-es2015-modules-commonjs"]
}
}
}
}
3 changes: 2 additions & 1 deletion packages/bridge-ui/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
dist
build
coverage
node_modules
example
LICENSES
public
public
151 changes: 75 additions & 76 deletions packages/bridge-ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,81 +1,80 @@
module.exports = {
env: {
node: true,
browser: true,
es2021: true,
webextensions: true,
env: {
node: true,
browser: true,
es2021: true,
webextensions: true,
},
extends: ['eslint:recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
extraFileExtensions: ['.svelte'],
},
plugins: ['svelte3', '@typescript-eslint'],
rules: {
'linebreak-style': ['error', 'unix'],
semi: ['error', 'always'],
},
ignorePatterns: ['node_modules'], // todo: lets lint that separately, or move it to its own package
settings: {
'svelte3/typescript': require('typescript'),
},
overrides: [
{
files: ['*.ts', '*.svelte'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
},
rules: {
'@typescript-eslint/no-inferrable-types': 0,
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-empty-interface': 'off',
},
},
extends: ["eslint:recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
extraFileExtensions: [".svelte"],
{
files: ['*.svelte'],
processor: 'svelte3/svelte3',
// typescript and svelte dont work with template handlers yet.
// https://stackoverflow.com/questions/63337868/svelte-typescript-unexpected-tokensvelteparse-error-when-adding-type-to-an-ev
// we need these 3 rules to be able to do:
// on:change=(e) => anyFunctionHere().
// when svelte is updated, we can remove these 5 rules for svelte files.
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-implicit-any': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/restrict-template-expressions': [
'warn',
{
allowNumber: true,
allowBoolean: true,
allowNullish: true,
allowAny: true,
},
],
},
},
plugins: ["svelte3", "@typescript-eslint"],
rules: {
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
{
files: ['*.spec.ts'],
plugins: ['jest'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/unbound-method': 'off',
'jest/unbound-method': 'error',
},
},
ignorePatterns: ["node_modules"], // todo: lets lint that separately, or move it to its own package
settings: {
"svelte3/typescript": require("typescript"),
},
overrides: [
{
files: ["*.ts", "*.svelte"],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
},
rules: {
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-empty-interface": "off",
},
},
{
files: ["*.svelte"],
processor: "svelte3/svelte3",
// typescript and svelte dont work with template handlers yet.
// https://stackoverflow.com/questions/63337868/svelte-typescript-unexpected-tokensvelteparse-error-when-adding-type-to-an-ev
// we need these 3 rules to be able to do:
// on:change=(e) => anyFunctionHere().
// when svelte is updated, we can remove these 5 rules for svelte files.
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-implicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/restrict-template-expressions": [
"warn",
{
allowNumber: true,
allowBoolean: true,
allowNullish: true,
allowAny: true,
},
],
},
},
{
files: ["*.spec.ts"],
plugins: ["jest"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/unbound-method": "off",
"jest/unbound-method": "error",
},
},
],
],
};
5 changes: 2 additions & 3 deletions packages/bridge-ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.vscode/
.idea
.DS_Store
*.suo
Expand All @@ -27,4 +26,4 @@ dist-ssr
.s.env

# vite
vite.config.ts.timestamp-*.mjs
vite.config.ts.timestamp-*.mjs
7 changes: 7 additions & 0 deletions packages/bridge-ui/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dist
build
coverage
node_modules
example
LICENSES
public
6 changes: 2 additions & 4 deletions packages/bridge-ui/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
"singleQuote": true,
"bracketSameLine": true,

"plugins": [
"prettier-plugin-svelte"
],
"plugins": ["prettier-plugin-svelte"],

"svelteSortOrder" : "options-scripts-markup-styles",
"svelteSortOrder": "options-scripts-markup-styles",
"svelteStrictMode": false,
"svelteAllowShorthand": true,
"svelteIndentScriptAndStyle": true
Expand Down
Loading

0 comments on commit c18afdd

Please sign in to comment.