Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #204

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Next #204

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
root: true
ignorePatterns:
- '*.config.*'
- .yarn/*
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/strict'
- 'plugin:@typescript-eslint/stylistic'
- 'plugin:import/recommended'
- 'plugin:import/typescript'
env:
shared-node-browser: true
es2023: true
parser: '@typescript-eslint/parser'
parserOptions:
project: true
ecmaVersion: 2023
sourceType: module
plugins:
- '@typescript-eslint'
- import
settings:
import/resolver:
typescript:
alwaysTryTypes: true
ecmaVersion: 2023
project:
- '**/tsconfig.json'
projectFolderIgnoreList:
- '**/node_modules/**'
node: true
rules:
max-len:
- error
- code: 120
no-eval:
- error
- allowIndirect: true
no-floating-decimal: error
space-infix-ops: error
new-cap:
- error
- capIsNewExceptionPattern: Mixin$
brace-style:
- error
- 1tbs
- allowSingleLine: true
'@typescript-eslint/consistent-type-imports':
- error
- fixStyle: separate-type-imports
prefer: type-imports
curly:
- error
- multi-or-nest
for-direction: error
no-class-assign: error
no-await-in-loop: error
no-compare-neg-zero: error
no-const-assign: error
no-constant-condition: error
no-constant-binary-expression: error
complexity: error
capitalized-comments: error
default-case-last: error
dot-notation:
- warn
no-console:
- warn
arrow-body-style:
- error
- as-needed
eqeqeq:
- error
- always
- 'null': ignore
indent:
- error
- 2
- SwitchCase: 1
VariableDeclarator: 1
outerIIFEBody: 1
MemberExpression: 1
FunctionDeclaration:
parameters: 1
body: 1
FunctionExpression:
parameters: 1
body: 1
CallExpression:
arguments: 1
ArrayExpression: 1
ObjectExpression: 1
ImportDeclaration: 1
flatTernaryExpressions: false
ignoreComments: false
ignoredNodes:
- TemplateLiteral *
- TSTypeParameterInstantiation
- 'FunctionExpression > .params[decorators.length > 0]'
- 'FunctionExpression > .params > :matches(Decorator, :not(:first-child))'
- 'ClassBody.body > PropertyDefinition[decorators.length > 0] > .key'
operator-linebreak:
- error
- after
- overrides:
'?': before
':': before
import/no-unresolved: 'off'
import/order:
- error
- groups:
- builtin
- external
- internal
- - parent
- sibling
- index
- object
- unknown
- type
newlines-between: always
warnOnUnassignedImports: true
alphabetize:
order: asc
caseInsensitive: true
'@typescript-eslint/no-empty-interface': 'off'
'@typescript-eslint/prefer-string-starts-ends-with': 'off'
'@typescript-eslint/no-dynamic-delete': 'off'
'@typescript-eslint/no-non-null-assertion': 'off'
'@typescript-eslint/member-ordering':
- error
- default:
- signature
- constructor
- static-field
- public-field
- protected-field
- private-field
- field
- public-method
- static-method
- protected-method
- private-method
- method
no-throw-literal: 'off'
require-jsdoc: 'off'
valid-jsdoc: 'off'
class-methods-use-this:
- error
- exceptMethods:
- connectedCallback
- disconnectedCallback
- performUpdate
- shouldUpdate
- firstUpdated
- update
- updated
- createRenderRoot
- render
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/secret/** filter=crypt diff=crypt merge=crypt
*.env filter=crypt diff=crypt merge=crypt
**.env filter=crypt diff=crypt merge=crypt

6 changes: 4 additions & 2 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
description: 'Enhancement of the code, not introducing new features.'
- name: 'refactor'
color: 1d76db
description: 'Updating the code with simpler, easier to understand or more efficient syntax or methods.'
description:
'Updating the code with simpler, easier to understand or more efficient syntax or methods.'
- name: 'performance'
color: 1d76db
description: 'Improving performance of the project, not introducing new features.'
Expand Down Expand Up @@ -71,7 +72,8 @@
description: 'Must be addressed as soon as possible.'
- name: 'priority-high'
color: b60205
description: 'After critical issues are fixed, these should be dealt with before any further issues.'
description:
'After critical issues are fixed, these should be dealt with before any further issues.'
- name: 'priority-medium'
color: 0e8a16
description: 'This issue may be useful, and needs some attention.'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ jobs:
- name: 'Commit and push changes'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_author: '${{ steps.import-gpg.outputs.name }} <${{ steps.import-gpg.outputs.email }}>'
commit_author:
'${{ steps.import-gpg.outputs.name }} <${{ steps.import-gpg.outputs.email }}>'
commit_user_name: ${{ steps.import-gpg.outputs.name }}
commit_user_email: ${{ steps.import-gpg.outputs.email }}
commit_message: 'style(*): prettier & eslint auto format'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

push:
branches:
- next
- main

env:
Expand Down Expand Up @@ -133,7 +132,9 @@ jobs:

steps:
- name: darkube-cli deploy
run: darkube deploy --token ${DARKUBE_DEPLOY_TOKEN} --app-id ${DARKUBE_APP_ID} --image-tag latest --job-id ${GITHUB_RUN_ID}
run:
darkube deploy --token ${DARKUBE_DEPLOY_TOKEN} --app-id ${DARKUBE_APP_ID} --image-tag
latest --job-id ${GITHUB_RUN_ID}
env:
DARKUBE_DEPLOY_TOKEN: ${{ secrets[format('__{0}__DEPLOY_TOKEN', matrix.name)] }}
DARKUBE_APP_ID: ${{ secrets[format('__{0}__APP_ID', matrix.name)] }}
Expand Down
37 changes: 0 additions & 37 deletions .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
semi: true
singleQuote: true
trailingComma: all
arrowParens: always
printWidth: 100
tabWidth: 2
useTabs: false
endOfLine: lf
quoteProps: as-needed
jsxSingleQuote: false
insertPragma: false
requirePragma: false
proseWrap: always
htmlWhitespaceSensitivity: ignore
overrides:
- files: '*.json'
options:
parser: json
34 changes: 12 additions & 22 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"npm.packageManager": "yarn",
"editor.wordWrapColumn": 120,
"npm.packageManager": "bun",
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
Expand All @@ -20,9 +19,7 @@
"*.njk": "html",
"ssh-config": "ssh_config"
},
"markdownlint.ignore": [
"**/CHANGELOG.md"
],
"markdownlint.ignore": ["**/CHANGELOG.md"],
"cSpell.language": "en,fa,fa-IR",
"cSpell.words": [
"adminjs",
Expand All @@ -33,24 +30,19 @@
"hamravesh",
"hono",
"iban",
"Jsonify",
"Jsonize",
"kartbook",
"Kavenegar",
"trpc",
"Zamanian",
"zibal"
],
"git.autoStash": true,
"git.branchProtection": [
"main",
"next"
],
"githubPullRequests.ignoredPullRequestBranches": [
"main",
"next"
],
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
"**/.pnp.*": true,
"node_modules": true
},
"yaml.schemas": {
"https://www.artillery.io/schema.json": [
Expand All @@ -62,15 +54,13 @@
"[nginx]": {
"editor.defaultFormatter": "AaaaronZhou.nginx-config-formatter-vscode-extension"
},
"eslint.experimental.useFlatConfig": true,
"eslint.format.enable": true,
"eslint.options": {
"overrideConfigFile": "./eslint.config.cjs"
},
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[NGINX]": {
"editor.defaultFormatter": "hangxingliu.vscode-nginx-conf-hint"
},
"typescript.tsdk": "node_modules/typescript/lib",
"editor.tokenColorCustomizations": {
"comments": "",
"textMateRules": []
}
}
Loading
Loading