Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
cancue committed Aug 21, 2023
0 parents commit fcd1f2b
Show file tree
Hide file tree
Showing 38 changed files with 15,899 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"prettier"
],
"plugins": [
"node",
"prettier",
"unused-imports"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"block-scoped-var": "error",
"eol-last": "error",
"eqeqeq": "off",
"no-var": "error",
"no-trailing-spaces": "error",
"no-restricted-properties": [
"error",
{
"object": "describe",
"property": "only"
},
{
"object": "it",
"property": "only"
}
],
"node/no-unpublished-import": "off",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prettier/prettier": "error",
"quotes": ["warn", "double", { "avoidEscape": true }],
"unused-imports/no-unused-imports": "error"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-warning-comments": "off",
"no-dupe-class-members": "off",
"node/no-empty-function": "off",
"node/no-missing-import": "off",
"node/no-missing-require": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/shebang": "off",
"require-atomic-updates": "off"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
}
}
],
"ignorePatterns": [
"deprecated-truffle",
"typechain-types",
"coverage"
]
}
95 changes: 95 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
build
.ganache
.env.*

# Common

## Editor
.idea
.vscode
*.code-workspace
*.suo
*.ntvs*
*.njsproj
*.sln
*.svd
*.userprefs
*.csproj
*.pidb
*.user
*.unityproj
*.booproj
ExportedObj/
*.xcuserstate

## misc
*.DS_Store
.env.local
.env.test.local
.env.development.local
.env.production.local

## Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

## Runtime data
pids
*.pid
*.seed
*.pid.lock

## Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

## Coverage directory used by tools like istanbul
coverage

## nyc test coverage
.nyc_output

## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

## Bower dependency directory (https://bower.io/)
bower_components

## node-waf configuration
.lock-wscript

## Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

## Dependency directories
node_modules/

## Optional npm cache directory
.npm

## Optional eslint cache
.eslintcache

## Optional REPL history
.node_repl_history

## Output of 'npm pack'
*.tgz

## Yarn Integrity file
.yarn-integrity


node_modules
.env
coverage
coverage.json
typechain
typechain-types

# Hardhat files
cache
artifacts

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bracketSpacing": false,
"singleQuote": false,
"trailingComma": "es5",
"arrowParens": "avoid"
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Webstela Ethereum Smart Contracts

### Unit Test
```shell
npm run test
```

### Coverage Test
```shell
npm run coverage
```

Loading

0 comments on commit fcd1f2b

Please sign in to comment.