Skip to content

Commit

Permalink
Merge pull request #168 from sugarlabs/develop
Browse files Browse the repository at this point in the history
Release v4.0.0
  • Loading branch information
meganindya authored Feb 12, 2022
2 parents 9da5cda + e4ca7aa commit 201773f
Show file tree
Hide file tree
Showing 167 changed files with 18,389 additions and 14,653 deletions.
47 changes: 47 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"no-mixed-spaces-and-tabs": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error", "nofunc"],
"@typescript-eslint/no-non-null-assertion": "off",
"semi": ["error", "always"],
"prefer-const": ["off"],
"no-console": "off",
"max-len": [
"warn",
{
"code": 100,
"ignoreTrailingComments": true,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
"no-duplicate-case": "error",
"no-irregular-whitespace": "warn"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:json/recommended-with-comments"
]
}
47 changes: 0 additions & 47 deletions .eslintrc.json

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
# Documentation:https://help.github.com/en/articles/workflow-syntax-for-github-actions

name: Continuous Deployment

on:
push:
branches: [develop]

jobs:
deploy:
name: Build and Deploy app to GitHub Pages

runs-on: ubuntu-latest

steps:
- name: Checkout the code base
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
npm ci
rm -rf .npmrc
- name: Build for Production
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
full_commit_message: 'deploy: publish app to GitHub Pages'
48 changes: 48 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# Documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions

name: Super-Linter

on:
pull_request:
branches: [develop]

jobs:
lint:
name: Lint Code Base

runs-on: ubuntu-latest

steps:
- name: Checkout the code base
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
npm ci
rm -rf .npmrc
- name: Lint new and edited files
uses: github/super-linter/slim@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: develop
LINTER_RULES_PATH: /
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc
TYPESCRIPT_ES_CONFIG_FILE: .eslintrc
MARKDOWN_CONFIG_FILE: .markdownlint.jsonc
VALIDATE_ALL_CODEBASE: false
VALIDATE_CSS: false
VALIDATE_DOCKERFILE: false
VALIDATE_DOCKERFILE_HADOLINT: false
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_JSCPD: false
63 changes: 0 additions & 63 deletions .github/workflows/linter.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
/coverage

# production
/dist
/build

# app config (dev)
/src/config/*-dev.json

# linter
.eslintcache

Expand Down
14 changes: 12 additions & 2 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// MD007/ul-indent - Unordered list indentation
"MD007": {
// Spaces for indent
"indent": 4,
"indent": 2,
// Whether to indent the first level of the list
"start_indented": false
},
Expand Down Expand Up @@ -118,7 +118,7 @@
// MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
"MD024": {
// Only check sibling headings
"allow_different_nesting": false,
"allow_different_nesting": true,
// Only check sibling headings
"siblings_only": false
},
Expand Down Expand Up @@ -246,5 +246,15 @@
"MD048": {
// Code fence syle
"style": "consistent"
},

// MD049/emphasis-style - Emphasis style should be consistent
"MD049": {
"style": "consistent"
},

// MD050/strong-style - Strong style should be consistent
"MD050": {
"style": "consistent"
}
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@sugarlabs:registry=https://npm.pkg.github.com
20 changes: 20 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"printWidth": 100,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "consistent",
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf",
"overrides": [
{
"files": ["*.json", "*.jsonc", "*.yml", "*.html", "*.css", "*.scss", "*.tsx"],
"options": {
"tabWidth": 2
}
}
]
}
28 changes: 0 additions & 28 deletions .prettierrc.json

This file was deleted.

Loading

0 comments on commit 201773f

Please sign in to comment.