Skip to content

Commit 3aa86c1

Browse files
committed
fix GH Actions
1 parent b33975e commit 3aa86c1

19 files changed

+1127
-540
lines changed

.eslintrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ rules:
99
- error
1010
- 2
1111
- SwitchCase: 1
12+
ignoredNodes:
13+
- 'ConditionalExpression > ConditionalExpression'
1214
linebreak-style:
1315
- error
1416
- unix

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,9 +24,10 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Browser (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Type [e.g. chrome, firefox]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Type [e.g. chrome, firefox]
30+
- Version [e.g. 22]
3031

3132
**Additional context**
3233
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: enhancement
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/ISSUE_TEMPLATE/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- name: Run ESLint
9-
run: eslint . --ext .js,.jsx,.ts,.tsx
7+
- uses: actions/checkout@v2
8+
- name: Run ESLint
9+
run: eslint . --ext .js,.jsx,.ts,.tsx

.github/workflows/lint.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
name: Lint
2-
3-
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
10-
11-
jobs:
12-
pre-commit:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v4
17-
18-
- name: Set up Python
19-
uses: actions/setup-python@v5
20-
with:
21-
python-version: '3.x'
22-
23-
- name: Set up Node.js
24-
uses: actions/setup-node@v4
25-
with:
26-
node-version: '20'
27-
28-
- name: Install Node dependencies
29-
run: npm install
30-
31-
- name: Install pre-commit
32-
run: pip install pre-commit
33-
34-
- name: Run pre-commit hooks
35-
run: pre-commit run --all-files
36-
37-
prettier:
38-
runs-on: ubuntu-latest
39-
steps:
40-
- name: Checkout code
41-
uses: actions/checkout@v4
42-
43-
- name: Set up Node.js
44-
uses: actions/setup-node@v4
45-
with:
46-
node-version: '20'
47-
48-
- name: Install Prettier
49-
run: npm install --save-dev prettier
50-
51-
- name: Run Prettier check
52-
run: npx prettier --check "**/*.{js,json,yaml,yml,md,html,css}"
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.x'
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '20'
27+
28+
- name: Install Node dependencies
29+
run: npm install
30+
31+
- name: Install pre-commit
32+
run: pip install pre-commit
33+
34+
- name: Run pre-commit hooks
35+
run: pre-commit run --all-files
36+
37+
prettier:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout code
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: '20'
47+
48+
- name: Install Prettier
49+
run: npm install --save-dev prettier
50+
51+
- name: Run Prettier check
52+
run: npx prettier --check "**/*.{js,json,yaml,yml,md,html,css}"

.pre-commit-config.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0 # Use the ref you want to point at
4-
hooks:
5-
- id: trailing-whitespace
6-
- id: check-case-conflict
7-
- id: check-docstring-first
8-
- id: check-executables-have-shebangs
9-
- id: check-merge-conflict
10-
- id: end-of-file-fixer
11-
- id: check-symlinks
12-
- repo: https://github.com/pre-commit/mirrors-eslint
13-
rev: v8.27.0 # Use the sha / tag you want to point at
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0 # Use the ref you want to point at
144
hooks:
15-
- id: eslint
16-
exclude: >
17-
(?x)^(
18-
browser-polyfill.min.js
19-
)$
5+
- id: trailing-whitespace
6+
- id: check-case-conflict
7+
- id: check-docstring-first
8+
- id: check-executables-have-shebangs
9+
- id: check-merge-conflict
10+
- id: end-of-file-fixer
11+
- id: check-symlinks
12+
- repo: https://github.com/pre-commit/mirrors-eslint
13+
rev: v8.27.0 # Use the sha / tag you want to point at
14+
hooks:
15+
- id: eslint
16+
exclude: >
17+
(?x)^(
18+
browser-polyfill.min.js
19+
)$

.prettierrc.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
arrowParens: "always"
1+
arrowParens: 'always'
22
bracketSpacing: true
3-
endOfLine: "lf"
4-
htmlWhitespaceSensitivity: "css"
3+
endOfLine: 'lf'
4+
htmlWhitespaceSensitivity: 'css'
55
insertPragma: false
6-
jsxBracketSameLine: false
6+
bracketSameLine: false
77
jsxSingleQuote: false
88
printWidth: 80
9-
proseWrap: "preserve"
10-
quoteProps: "as-needed"
9+
proseWrap: 'preserve'
10+
quoteProps: 'as-needed'
1111
requirePragma: false
1212
semi: true
1313
singleQuote: true
1414
tabWidth: 2
15-
trailingComma: "es5"
15+
trailingComma: 'es5'
1616
useTabs: false
1717
vueIndentScriptAndStyle: false

0 commit comments

Comments
 (0)