Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
voznik committed Jul 14, 2024
0 parents commit 9847f7a
Show file tree
Hide file tree
Showing 38 changed files with 7,912 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
!.commitlintrc.json
**/package.json
tools/scripts
134 changes: 134 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"env": {
"browser": true,
"es2020": true,
"node": true
},
"extends": ["plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@nx", "jsdoc", "prettier", "@typescript-eslint", "import"],
"overrides": [
{
"files": ["*.ts", "*.js"],
"excludedFiles": [],
"extends": [
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:jsdoc/recommended"
],
"rules": {
"no-prototype-builtins": 0,
"curly": ["error", "all"],
"jsdoc/newline-after-description": 0,
"jsdoc/require-returns-type": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/require-jsdoc": [
0,
{
"contexts": [
"TSEnumDeclaration",
"TSTypeAliasDeclaration",
"TSInterfaceDeclaration",
"TSDeclareFunction",
"ClassDeclaration",
"TSMethodSignature",
"MethodDefinition:not([accessibility=\"private\"]) > FunctionExpression",
"MethodDefinition[key.name!=\"constructor\"]",
"TSPropertySignature",
"ArrowFunctionExpression",
"FunctionDeclaration",
"ArrowFunctionDeclaration",
"FunctionExpression"
],
"publicOnly": true,
"enableFixer": false,
"fixerMessage": " INFO: add comment",
"checkSetters": false
}
],
"jsdoc/check-param-names": [
2,
{
"checkDestructured": false,
"useDefaultObjectProperties": true
}
],
"jsdoc/require-param": [
2,
{
"checkDestructured": false,
"checkDestructuredRoots": false,
"enableRootFixer": false,
"useDefaultObjectProperties": true
}
],
"jsdoc/require-returns": 0,
"jsdoc/no-defaults": 0,
"jsdoc/require-param-type": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-example": [
"off",
{
"avoidExampleOnConstructors": true
}
],
"import/extensions": "off",
"import/no-unresolved": "off",
"import/named": "off",
"import/newline-after-import": "error",
"import/no-default-export": "error",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-relative-parent-imports": "off",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "never",
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
"jest": true
},
"rules": {
"jsdoc/require-jsdoc": 0,
"@nrwl/nx/enforce-module-boundaries": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/member-ordering": 0,
"@angular-eslint/component-selector": 0,
"@typescript-eslint/no-explicit-any": 0
}
}
],
"settings": {
"jsdoc": {
"ignoreInternal": true,
"checkDefaults": false
}
}
}
49 changes: 49 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/docs
/documentation
/public
/tmp
/out-tsc
**/build

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
.cache
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
*.bak
.env
junit.xml

# System Files
.DS_Store
Thumbs.db

.nx/cache
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{ts,js}": ["eslint --fix", "git add"],
"*.{html,css,scss,md,yml}": ["prettier --write", "git add"]
}
11 changes: 11 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.idea
.vscode
docs
node_modules
src/
tests/
**/*.ts

typings.d.ts
tslint.json
tsconfig.json
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Add files here to ignore them from prettier formatting

/dist
/coverage

/.nx/cache
.angular
**/index.html
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 92,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "avoid",
"htmlWhitespaceSensitivity": "ignore",
"jsxBracketSameLine": true
}
40 changes: 40 additions & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"extends": [
"config:base",
"group:all",
"monorepo:angular",
"schedule:monthly",
":maintainLockFilesMonthly"
],
"ignoreDeps": [
"typescript",
"semantic-release",
"@semantic-release/git",
"@semantic-release/changelog"
],
"pinVersions": false,
"separatePatchReleases": false,
"ignoreUnstable": true,
"automerge": true,
"automergeType": "branch-push",
"lockFileMaintenance": {
"enabled": true
},
"peerDependencies": {
"versionStrategy": "widen"
},
"packageRules": [
{
"sourceUrlPrefixes": ["https://github.com/babel/babel"],
"groupName": "babel monorepo"
},
{
"packagePatterns": ["^eslint"],
"groupName": "eslint"
},
{
"packagePatterns": ["jest"],
"groupName": "jest"
}
]
}
12 changes: 12 additions & 0 deletions .streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[server]
headless = true
runOnSave = true
allowRunOnSave = true
# fastReruns = true
fileWatcherType = "auto"

[browser]
gatherUsageStats = false

[logger]
level = "info"
46 changes: 46 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
//
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
},
{
"name": "Python: Debug Test",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": [
"${file}"
],
"env": {
"PYTHONPATH": "${workspaceFolder}"
},
"console": "integratedTerminal"
},
{
"name": "Python: Debug Streamlit",
"type": "debugpy",
"request": "launch",
"module": "streamlit",
"args": [
"run",
"${file}",
"--server.headless=true",
"--browser.gatherUsageStats=false"
],
"env": {
"PYTHONPATH": "${workspaceFolder}"
},
"console": "integratedTerminal"
}
]
}
24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features",
"editor.formatOnSave": true,
"editor.quickSuggestions": {
"other": false
}
},
"search.showLineNumbers": true,
"debug.allowBreakpointsEverywhere": true,
"workbench.colorCustomizations": {
"statusBar.background": "#8d2089",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#b729b1",
"sash.hoverBorder": "#b729b1",
"statusBarItem.remoteBackground": "#8d2089",
"statusBarItem.remoteForeground": "#e7e7e7"
},
"peacock.color": "#8d2089",
"python.defaultInterpreterPath": "/home/voznik/.cache/pypoetry/virtualenvs/streamlit-rxdb-dataframe-zuiqvGqO-py3.10",
"flake8.args": ["--max-line-length=100"],
"flake8.importStrategy": "fromEnvironment",
"black-formatter.args": ["--line-length=100"]
}
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "eslint",
"problemMatcher": ["$eslint-stylish"],
"label": "eslint: lint whole folder",
"isBackground": true
// "runOptions": { "runOn": "folderOpen" }
}
]
}
Loading

0 comments on commit 9847f7a

Please sign in to comment.