-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Ashleyhx-patch-1
- Loading branch information
Showing
23 changed files
with
1,893 additions
and
1,561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
extends: [ | ||
'plugin:vue/vue3-recommended', | ||
// 'plugin:vue/recommended' // Use this if you are using Vue.js 2.x. | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2022, | ||
}, | ||
rules: { | ||
// override/add rules settings here, such as: | ||
// 'vue/no-unused-vars': 'error' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_call: | ||
|
||
permissions: | ||
checks: write | ||
contents: write | ||
|
||
jobs: | ||
run-linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run linters without auto-fix (on master) | ||
if: github.ref == 'refs/heads/master' | ||
run: ./node_modules/.bin/eslint --ext .js,.vue src | ||
|
||
- name: Run linters with auto-fix (on non-master branches) | ||
if: github.ref != 'refs/heads/master' | ||
run: ./node_modules/.bin/eslint --ext .js,.vue src --fix | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
if: github.ref != 'refs/heads/master' | ||
with: | ||
author_name: Lint Bot | ||
message: 'Run linters' |
Oops, something went wrong.