Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
mytonwalletorg committed Aug 28, 2022
0 parents commit 66f22ab
Show file tree
Hide file tree
Showing 287 changed files with 76,350 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"presets": [
[
"@babel/typescript"
],
[
"@babel/preset-env"
],
[
"@babel/preset-react"
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-syntax-nullish-coalescing-operator"
]
}
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
> 0.75%, not op_mini all, not and_uc > 0
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 2
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NODE_ENV=development

TONWEB_API_KEY=
TONWEB_TESTNET_API_KEY=
TONWEB_MAINNET_API_URL=
TONWEB_TESTNET_API_URL=
BRILLIANT_API_BASE_URL=
TONAPIIO_BASE_URL=
TONAPIIO_SERVER_KEY=
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dev

src/lib/rlottie/rlottie-wasm.js

webpack.config.js
jest.config.js
playwright.config.ts
postcss.config.js
106 changes: 106 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"extends": [
"react-app",
"plugin:teactn/recommended",
"airbnb",
"airbnb-typescript"
],
"plugins": [
"no-async-without-await",
"teactn",
"no-null"
],
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"max-len": [
"error",
120
],
"array-bracket-newline": [
2,
"consistent"
],
"no-null/no-null": 2,
"no-console": "error",
"semi": "error",
"no-implicit-coercion": "error",
"react-hooks/exhaustive-deps": "error",
"arrow-body-style": "off",
"no-else-return": "off",
"no-plusplus": "off",
"no-void": "off",
"no-continue": "off",
"default-case": "off",
"no-param-reassign": "off",
"no-prototype-builtins": "off",
"no-await-in-loop": "off",
"no-nested-ternary": "off",
"function-paren-newline": ["error", "consistent"],
"prefer-destructuring": "off",
// Allow for...of. Edited from:
// https://github.com/airbnb/javascript/blob/b4377fb03089dd7f08955242695860d47f9caab4/packages/eslint-config-airbnb-base/rules/style.js#L333
"no-restricted-syntax": [
"error",
{
"selector": "ForInStatement",
"message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."
},
{
"selector": "LabeledStatement",
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
},
{
"selector": "WithStatement",
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."
}
],
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/named": "off",
"import/no-webpack-loader-syntax": "off",
"react/prop-types": "off",
"react/jsx-one-expression-per-line": "off",
"react/button-has-type": "off",
"react/require-default-props": "off",
"react/function-component-definition": "off",
// Teact feature
"react/style-prop-object": "off",
"react/jsx-no-bind": ["error", {
"ignoreRefs": true,
"allowArrowFunctions": false,
"allowFunctions": false,
"allowBind": false,
"ignoreDOMComponents": true
}],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off",
"jsx-a11y/media-has-caption": "off",
"no-async-without-await/no-async-without-await": 1,
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false
}
],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/default-param-last": "off",
"@typescript-eslint/return-await": ["error", "in-try-catch"],
"teactn/prefer-separate-component-file": "off"
},
"settings": {
"import/resolver": "webpack"
},
"parserOptions": {
"project": "./tsconfig.json"
}
}
12 changes: 12 additions & 0 deletions .fantasticonrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
inputDir: './src/assets/icons',
outputDir: './src/styles',
name: 'brilliant-icons',
fontTypes: ['woff', 'woff2'],
assetTypes: ['css'],
tag: '',
// Use a custom Handlebars template
templates: {
css: './plugins/brilliant-icons.css.hbs'
},
};
25 changes: 25 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Declare files that will always have LF line endings on checkout.
.htaccess text eol=lf
*.html text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.json text eol=lf
*.map text eol=lf
*.md text eol=lf
*.mo text eol=lf
*.svg text eol=lf
*.sh text eol=lf

# Denote all files that are truly binary and should not be modified.
*.gif binary
*.ico binary
*.jpeg binary
*.jpg binary
*.png binary
*.wav binary
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
dist
MyTonWallet.zip
.cache
.env*
!.env.example
.idea
*.iml
dev/perf/screenshot*
.DS_store
test-results
trash/
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx tsc && npx lint-staged
52 changes: 52 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"extends": [
"stylelint-config-recommended-scss",
"stylelint-config-clean-order"
],
"ignoreFiles": [
"dist/*.css",
"src/styles/brilliant-icons.css"
],
"plugins": [
"stylelint-declaration-block-no-ignored-properties",
"stylelint-high-performance-animation",
"stylelint-group-selectors",
"stylelint-order",
"./plugins/wholePixel.js"
],
"rules": {
"number-leading-zero": "always",
"selector-attribute-quotes": "always",
"scss/operator-no-unspaced": null,
"no-descending-specificity": null,
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": [
"global"
]
}
],
"plugin/declaration-block-no-ignored-properties": true,
"plugin/no-low-performance-animation-properties": [
true,
{
"ignore": "paint-properties"
}
],
"plugin/stylelint-group-selectors": [
true,
{
"severity": "warning"
}
],
"plugin/whole-pixel": [
true,
{
"ignoreList": [
"letter-spacing"
]
}
]
}
}
Loading

0 comments on commit 66f22ab

Please sign in to comment.