Skip to content

Commit 201773f

Browse files
authored
Merge pull request #168 from sugarlabs/develop
Release v4.0.0
2 parents 9da5cda + e4ca7aa commit 201773f

File tree

167 files changed

+18389
-14653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+18389
-14653
lines changed

.eslintrc

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"ecmaVersion": 12,
9+
"sourceType": "module"
10+
},
11+
"rules": {
12+
"no-mixed-spaces-and-tabs": "warn",
13+
"no-unused-vars": "off",
14+
"@typescript-eslint/no-unused-vars": [
15+
"warn",
16+
{
17+
"argsIgnorePattern": "^_",
18+
"varsIgnorePattern": "^_"
19+
}
20+
],
21+
"no-use-before-define": "off",
22+
"@typescript-eslint/no-use-before-define": ["error", "nofunc"],
23+
"@typescript-eslint/no-non-null-assertion": "off",
24+
"semi": ["error", "always"],
25+
"prefer-const": ["off"],
26+
"no-console": "off",
27+
"max-len": [
28+
"warn",
29+
{
30+
"code": 100,
31+
"ignoreTrailingComments": true,
32+
"ignoreComments": true,
33+
"ignoreStrings": true,
34+
"ignoreTemplateLiterals": true
35+
}
36+
],
37+
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
38+
"no-duplicate-case": "error",
39+
"no-irregular-whitespace": "warn"
40+
},
41+
"extends": [
42+
"eslint:recommended",
43+
"plugin:@typescript-eslint/recommended",
44+
"prettier",
45+
"plugin:json/recommended-with-comments"
46+
]
47+
}

.eslintrc.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/CD.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
# Documentation:https://help.github.com/en/articles/workflow-syntax-for-github-actions
3+
4+
name: Continuous Deployment
5+
6+
on:
7+
push:
8+
branches: [develop]
9+
10+
jobs:
11+
deploy:
12+
name: Build and Deploy app to GitHub Pages
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout the code base
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Setup Node.js 16.x
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '16'
26+
27+
- name: Install dependencies
28+
run: |
29+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
30+
npm ci
31+
rm -rf .npmrc
32+
33+
- name: Build for Production
34+
run: npm run build
35+
36+
- name: Deploy to GitHub Pages
37+
uses: peaceiris/actions-gh-pages@v3
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
publish_dir: ./build
41+
force_orphan: true
42+
user_name: 'github-actions[bot]'
43+
user_email: 'github-actions[bot]@users.noreply.github.com'
44+
full_commit_message: 'deploy: publish app to GitHub Pages'

.github/workflows/lint.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
# Documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
3+
4+
name: Super-Linter
5+
6+
on:
7+
pull_request:
8+
branches: [develop]
9+
10+
jobs:
11+
lint:
12+
name: Lint Code Base
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout the code base
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Setup Node.js 16.x
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '16'
26+
27+
- name: Install dependencies
28+
run: |
29+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
30+
npm ci
31+
rm -rf .npmrc
32+
33+
- name: Lint new and edited files
34+
uses: github/super-linter/slim@v4
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
DEFAULT_BRANCH: develop
38+
LINTER_RULES_PATH: /
39+
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc
40+
TYPESCRIPT_ES_CONFIG_FILE: .eslintrc
41+
MARKDOWN_CONFIG_FILE: .markdownlint.jsonc
42+
VALIDATE_ALL_CODEBASE: false
43+
VALIDATE_CSS: false
44+
VALIDATE_DOCKERFILE: false
45+
VALIDATE_DOCKERFILE_HADOLINT: false
46+
VALIDATE_JAVASCRIPT_STANDARD: false
47+
VALIDATE_TYPESCRIPT_STANDARD: false
48+
VALIDATE_JSCPD: false

.github/workflows/linter.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
/coverage
88

99
# production
10+
/dist
1011
/build
1112

13+
# app config (dev)
14+
/src/config/*-dev.json
15+
1216
# linter
1317
.eslintcache
1418

.markdownlint.jsonc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
// MD007/ul-indent - Unordered list indentation
3838
"MD007": {
3939
// Spaces for indent
40-
"indent": 4,
40+
"indent": 2,
4141
// Whether to indent the first level of the list
4242
"start_indented": false
4343
},
@@ -118,7 +118,7 @@
118118
// MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
119119
"MD024": {
120120
// Only check sibling headings
121-
"allow_different_nesting": false,
121+
"allow_different_nesting": true,
122122
// Only check sibling headings
123123
"siblings_only": false
124124
},
@@ -246,5 +246,15 @@
246246
"MD048": {
247247
// Code fence syle
248248
"style": "consistent"
249+
},
250+
251+
// MD049/emphasis-style - Emphasis style should be consistent
252+
"MD049": {
253+
"style": "consistent"
254+
},
255+
256+
// MD050/strong-style - Strong style should be consistent
257+
"MD050": {
258+
"style": "consistent"
249259
}
250260
}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@sugarlabs:registry=https://npm.pkg.github.com

.prettierrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"printWidth": 100,
3+
"tabWidth": 4,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"quoteProps": "consistent",
8+
"trailingComma": "all",
9+
"bracketSpacing": true,
10+
"arrowParens": "always",
11+
"endOfLine": "lf",
12+
"overrides": [
13+
{
14+
"files": ["*.json", "*.jsonc", "*.yml", "*.html", "*.css", "*.scss", "*.tsx"],
15+
"options": {
16+
"tabWidth": 2
17+
}
18+
}
19+
]
20+
}

.prettierrc.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)