Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
chore!: reset project
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Rebuild project to support more QML language features.
  • Loading branch information
seanwu1105 committed Aug 3, 2022
1 parent f670130 commit 4c77f9b
Show file tree
Hide file tree
Showing 101 changed files with 2,102 additions and 10,748 deletions.
106 changes: 21 additions & 85 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,88 +1,24 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": ["tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:rxjs/recommended"
],
"rules": {
"no-console": "error",
"prefer-const": "error",
"no-param-reassign": "error",
"no-else-return": "error",
"max-len": [
"error",
{
"code": 100,
"ignoreStrings": true,
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"class-methods-use-this": "error",
"no-magic-numbers": "off",
"@typescript-eslint/no-magic-numbers": [
"error",
{ "ignore": [0, 1], "ignoreDefaultValues": true }
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/array-type": "error",
"@typescript-eslint/no-unnecessary-condition": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-nullish-coalescing": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/prefer-as-const": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/prefer-ts-expect-error": "error",
"@typescript-eslint/promise-function-async": [
"error",
{ "checkArrowFunctions": false }
],
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
"static-field",
"abstract-field",
"instance-field",
"decorated-field",
"constructor",
"static-method",
"abstract-method",
"instance-method",
"decorated-method"
]
}
],
"rxjs/finnish": "error",
"rxjs/no-ignored-notifier": "off"
},
"ignorePatterns": ["**/*.d.ts"],
"overrides": [
{
"files": ["**/test/**/*.ts"],
"rules": {
"@typescript-eslint/no-magic-numbers": "off",
"no-console": ["error", { "allow": ["error"] }]
}
}
]
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}
124 changes: 0 additions & 124 deletions .github/workflows/build.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pre-release
on:
push:
branches:
- next

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Release Please
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
default-branch: next

- name: Install dependencies
if: steps.release.outputs.release_created
run: npm ci

- name: Package VSIX
if: steps.release.outputs.release_created
run: npx vsce package --pre-release

- name: Publish on Visual Studio Code Extension Marketplace
if: steps.release.outputs.release_created
run: npx vsce publish --pre-release
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Upload VSIX to release assets
if: steps.release.outputs.release_created
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: vscode-qt-for-python-${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.vsix
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Release Please
uses: google-github-actions/release-please-action@v3
Expand Down
Loading

0 comments on commit 4c77f9b

Please sign in to comment.