Skip to content

Commit

Permalink
add code
Browse files Browse the repository at this point in the history
  • Loading branch information
stagas committed Nov 22, 2021
1 parent cc82790 commit 9d07d0c
Show file tree
Hide file tree
Showing 20 changed files with 11,922 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
],
ignorePatterns: ['dist', 'node_modules'],
plugins: ['import'],
settings: {
react: {
pragma: 'h',
fragment: 'Fragment',
version: '17',
},
},
rules: {
'@typescript-eslint/no-extra-semi': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ args: 'all', argsIgnorePattern: '^_' },
],
},
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.ts linguist-language=TypeScript

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage
dist
node_modules
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"

npm run lint
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"printWidth": 80,
"trailingComma": "es5",
"arrowParens": "avoid"
}
13 changes: 13 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"recommendations": [
"gabrielgrinberg.auto-run-command",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"usernamehw.errorlens",
"salbert.comment-ts",
"kavod-io.vscode-jest-test-adapter",
"ryanluker.vscode-coverage-gutters",
"ethansk.restore-terminals",
"gruntfuggly.todo-tree"
]
}
33 changes: 33 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"files.exclude": {
".husky": true,
"coverage": true
},
"auto-run-command.rules": [
{
"condition": [
"hasFile: coverage/lcov.info"
],
"command": "coverage-gutters.watchCoverageAndVisibleEditors",
"message": "Running coverage"
}
],
"restoreTerminals.terminals": [
{
"splitTerminals": [
{
"name": "coverage",
"commands": [
"npm run cov:watch"
]
},
{
"name": "zsh",
"commands": []
}
]
},
],
"todo-tree.tree.scanMode": "workspace only",
"npm-scripts.showStartNotification": false
}
Binary file added demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9d07d0c

Please sign in to comment.