Skip to content

Commit

Permalink
feat!: move to vite + typescript => BREAKS PWA, please re-install! (#352
Browse files Browse the repository at this point in the history
)
  • Loading branch information
WDaan committed Nov 15, 2022
1 parent d3cf4d5 commit 5aa83fa
Show file tree
Hide file tree
Showing 139 changed files with 10,993 additions and 32,639 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/*
node_modules/*
vuetorrent/
90 changes: 12 additions & 78 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,85 +1,19 @@
module.exports = {
extends: [
'eslint:recommended',
'plugin:vue/recommended'
],
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2017,
sourceType: 'module'
},
root: true,
env: {
es6: true,
node: true,
browser: true,
node: true
es2016: true
},
plugins: [
'vue'
],
extends: ['eslint:recommended', 'plugin:vue/recommended', '@vue/typescript/recommended', 'prettier', 'plugin:import/recommended'],
parserOptions: {
ecmaVersion: 2020
},
plugins: ['vue', 'prettier'],
rules: {
'arrow-parens': ['error', 'as-needed'],
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'array-bracket-spacing': ['error', 'never'],
'comma-spacing': ['error', { before: false, after: true }],
'brace-style': ['error', '1tbs'],
'comma-dangle': ['error', 'never'],
'comma-style': ['error', 'last'],
eqeqeq: 0,
indent: ['error', 2, {
SwitchCase: 1,
ignoredNodes: ['TemplateLiteral']
}],
'vue/html-indent': [
'error',
2,
{ ignores: ['VElement[name=code-block].children'] }
],
'vue/multiline-html-element-content-newline': ['error', {
ignores: ['code-block']
}],
'linebreak-style': ['error', 'unix'],
'keyword-spacing': 'error',
'prefer-const': 'error',
'new-parens': 'error',
'no-case-declarations': 'off',
'no-const-assign': 'error',
'no-unused-vars': ['error', { args: 'none' }],
'no-whitespace-before-property': 'error',
'object-curly-spacing': ['error', 'always'],
quotes: ['error', 'single'],
'quote-props': ['error', 'as-needed'],
semi: ['error', 'never'],
'space-before-blocks': 'error',
'space-before-function-paren': ['error', { anonymous: 'always', named: 'never' }],
'space-in-parens': ['error', 'never'],
'space-infix-ops': 'error',
strict: ['error', 'never'],
'vue/max-attributes-per-line': ['error', {
singleline: 3,
multiline: {
max: 1,
allowFirstLine: false
}
}],
'vue/no-v-html': 'off',
'vue/require-prop-types': 'off',
'vue/require-default-prop': 'off',
'vue/require-v-for-key': 'off',
'vue/order-in-components': ['error'],
'vue/space-infix-ops': 'error',
'arrow-spacing': ['error', { before: true, after: true }],
'no-multi-spaces': ['error'],
'newline-before-return': ['error']
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
'vue/multi-word-component-names': 'off',
'vue/first-attribute-linebreak': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
}
7 changes: 4 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# My Title [feat/fix/perf/chore]
Please explain what kind of feature your PR's brings or what kind of bug it fixes.
Feel free to include screenshots for UI related changes.
Keep all the commits inside your PR related to topic of the PR, otherwise create a seperate PR

Please explain what kind of feature your PR's brings or what kind of bug it fixes. Feel free to include screenshots for UI related changes. Keep all the commits inside your PR
related to topic of the PR, otherwise create a seperate PR

# PR Checklist

- [ ] I've started from master
- [ ] I've only committed changes related to this PR
- [ ] All Unit tests pass
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: 'CodeQL'

on:
schedule:
Expand All @@ -12,19 +12,19 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: vuetorrent
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Improvements","hidden":false}]'
changelog-types:
'[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Improvements","hidden":false}]'

upload-release:
needs: setup-release
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test Release Build
on:
workflow_dispatch:
workflow_dispatch:

jobs:
test-build:
Expand All @@ -22,4 +22,3 @@ jobs:
run: npm ci
- name: Build VueTorrent
run: npm run build

10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 180,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"proseWrap": "always",
"endOfLine": "auto",
"arrowParens": "avoid"
}
Loading

0 comments on commit 5aa83fa

Please sign in to comment.