Skip to content

Commit

Permalink
Apply prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 committed Apr 16, 2023
1 parent b3140f4 commit 7148518
Show file tree
Hide file tree
Showing 236 changed files with 15,607 additions and 15,711 deletions.
115 changes: 53 additions & 62 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,55 @@
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:cypress/recommended",
"prettier",
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended"
],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier",
"simple-import-sort",
"svelte3"
],
"overrides": [
{
"files": [
"*.svelte",
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)"
],
"processor": "svelte3/svelte3",
"env": {
"jest": true
}
}
],
"rules": {
"no-console": "off",
"no-async-promise-executor": "off",
"prettier/prettier": "warn",
"@typescript-eslint/no-var-requires": "off",
"simple-import-sort/imports": "error",
"prefer-spread": "off",
"@typescript-eslint/no-explicit-any": "off",
"vue/multi-word-component-names": "off",
"vue/no-v-text-v-html-on-component": "off"
},
"settings": {
"svelte3/typescript": true // load TypeScript as peer dependency
},
"ignorePatterns": [
"**/node_modules/**",
"**/dist/**",
"**/docs/**",
"/packages/rmb_direct_client/lib/types/lib/**",
"packages/weblets/playground/public/build/elements/*",
"*.config.*",
"*global.css"
]
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:cypress/recommended",
"prettier",
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended"
],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "simple-import-sort", "svelte3"],
"overrides": [
{
"files": ["*.svelte", "**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
"processor": "svelte3/svelte3",
"env": {
"jest": true
}
}
],
"rules": {
"no-console": "off",
"no-async-promise-executor": "off",
"prettier/prettier": "warn",
"@typescript-eslint/no-var-requires": "off",
"simple-import-sort/imports": "error",
"prefer-spread": "off",
"@typescript-eslint/no-explicit-any": "off",
"vue/multi-word-component-names": "off",
"vue/no-v-text-v-html-on-component": "off"
},
"settings": {
"svelte3/typescript": true // load TypeScript as peer dependency
},
"ignorePatterns": [
"**/node_modules/**",
"**/dist/**",
"**/docs/**",
"/packages/rmb_direct_client/lib/types/lib/**",
"packages/weblets/playground/public/build/elements/*",
"*.config.*",
"*global.css"
]
}
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

### Search first

Search for similar issues first, if not complete the following template
Expand Down
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

### Search first
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Full Clients Build

on:
push:
branches: [ development ]
branches: [development]
pull_request:
branches: [ development ]
branches: [development]

jobs:
build:
Expand All @@ -18,14 +18,14 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"

- name: Install
run: yarn
- name: Build
run: lerna run build
- name: Install
run: yarn
- name: Build
run: lerna run build
10 changes: 5 additions & 5 deletions .github/workflows/grid_client_nightly.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Grid Client Nightly
name: Grid Client Nightly

on:
schedule:
Expand All @@ -13,14 +13,14 @@ jobs:
strategy:
fail-fast: false
matrix:
network: ['dev','qa','test','main']
network: ["dev", "qa", "test", "main"]
env:
NETWORK: ${{ matrix.network }}
RMB_PROXY: true
STORE_SECRET: secret
MNEMONIC: ${{ secrets.MNEMONIC }}
SSH_KEY: ${{ secrets.SSH_KEY }}

steps:
- uses: actions/checkout@v2
if: ${{ env.NETWORK == 'dev' }}
Expand All @@ -40,7 +40,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
cache: "yarn"

- name: Install deps
run: |
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
continue-on-error: true
run: |
yarn run ts-node --project packages/grid/tsconfig-node.json packages/grid/scripts/kubernetes_with_qsfs.ts
- name: Run test kvstore
- name: Run test kvstore
id: kvstore
continue-on-error: true
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/grid_client_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
cache: "yarn"
- name: Install Yggdrasil and Add Peers
run: |
sudo apt-get update
Expand All @@ -42,7 +42,7 @@ jobs:
sudo apt-get install -y git libtool tmux redis net-tools
- name: Install
run: yarn
- name: Run tests
- name: Run tests
run: yarn workspace @threefold/grid_client test --runInBand --ci --coverage --colors
- name: Cleanup
continue-on-error: true
Expand All @@ -54,9 +54,9 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
if: success() || failure()
with:
name: JEST Tests
name: JEST Tests
path: packages/grid/tests/test-reports/report.xml
reporter: jest-junit
fail-on-error: false
25 changes: 12 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Full Clients Lint

on:
push:
branches: [ development ]
branches: [development]
pull_request:
branches: [ development ]
branches: [development]

jobs:
lint:
Expand All @@ -18,15 +18,14 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"

- name: Install
run: yarn
- name: Lint
run: yarn check-lint

- name: Install
run: yarn
- name: Lint
run: yarn check-lint
Loading

0 comments on commit 7148518

Please sign in to comment.