Skip to content

Commit af2aa03

Browse files
committed
fix(lint): fix stylelint and eslint
1 parent de6a26b commit af2aa03

File tree

13 files changed

+114
-117
lines changed

13 files changed

+114
-117
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github

.eslintrc.cjs

+7-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ module.exports = {
66
settings: { jest: { version: 27 } },
77
rules: {
88
'import/no-extraneous-dependencies': ['error', { devDependencies: ['/!(src)/**', '**/*.test.*', '**/*.spec.*', '**/*.config.*'] }],
9-
'vue/no-undef-components': ['error',{
10-
"ignorePatterns": ['^v-.*']
11-
}]
12-
}
9+
'vue/no-undef-components': [
10+
'error',
11+
{
12+
ignorePatterns: ['^v-.*'],
13+
},
14+
],
15+
},
1316
};

.github/ISSUE_TEMPLATE/bug_report.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug report
22
description: Report errors or unexpected issues
33
title: '[bug]: Bug Report (please change this title)'
4-
labels: ['bug', 'bug-report']
4+
labels: [bug, bug-report]
55
assignees: []
66

77
body:
@@ -67,7 +67,7 @@ body:
6767
description: A brief description of the issue.
6868
placeholder: |
6969
Describe what happens:
70-
70+
7171
Everytime I add a new torrent, the extension crashes ...
7272
validations:
7373
required: true
@@ -77,9 +77,9 @@ body:
7777
attributes:
7878
label: Steps to Reproduce the Issue
7979
description: Please describe in details the steps to reproduce your issue.
80-
placeholder: |
80+
placeholder: |
8181
Describe how to reproduce:
82-
82+
8383
1. When I'm doing this
8484
2. Then this
8585
3. While having this open
@@ -126,4 +126,4 @@ body:
126126
Note that those snapshot may contain identifiable information you might want to redact before submitting (like credentials or external ip addresses)
127127
placeholder: Paste your snapshot here.
128128
validations:
129-
required: false
129+
required: false

.github/ISSUE_TEMPLATE/feature_request.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature request
22
description: Suggest an improvement
33
title: '[feature]: Feature Request (please change this title)'
4-
labels: ['enhancement', 'feature-request']
4+
labels: [enhancement, feature-request]
55
assignees: []
66

77
body:
@@ -40,7 +40,7 @@ body:
4040
description: A brief description of the proposed functionality.
4141
placeholder: |
4242
Describe what you want to improve:
43-
43+
4444
I wish that when I'm downloading a task I also get a free coffee !
4545
validations:
4646
required: true

.github/actions/build/action.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
description: Install and build the repo
3+
4+
inputs:
5+
node_version:
6+
description: Pnpm version to use
7+
required: true
8+
pnpm_version:
9+
description: Node version to use
10+
required: true
11+
12+
runs:
13+
using: composite
14+
steps:
15+
- name: Setup pnpm ${{ inputs.pnpm_version }}
16+
uses: pnpm/action-setup@v2
17+
with:
18+
version: ${{ inputs.pnpm_version }}
19+
20+
- name: Setup Node.js ${{ inputs.node_version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ env.node_version }}
24+
registry-url: 'https://registry.npmjs.org'
25+
cache: pnpm
26+
27+
- name: Install dependencies
28+
shell: bash
29+
run: |
30+
# ================= Install =================
31+
32+
pnpm install
33+
34+
- name: Build sources
35+
shell: bash
36+
run: |
37+
# ================= Build =================
38+
39+
pnpm run build

.github/renovate.json

+7-24
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,23 @@
11
{
2-
"extends": [
3-
"config:base",
4-
":preserveSemverRanges"
5-
],
2+
"extends": ["config:base", ":preserveSemverRanges"],
63
"assigneesFromCodeOwners": true,
74
"rangeStrategy": "replace",
85
"packageRules": [
96
{
10-
"matchPackagePatterns": [
11-
"*"
12-
],
13-
"matchUpdateTypes": [
14-
"minor",
15-
"patch"
16-
],
7+
"matchPackagePatterns": ["*"],
8+
"matchUpdateTypes": ["minor", "patch"],
179
"groupName": "all non-major dependencies",
1810
"groupSlug": "all-minor-patch",
19-
"labels": [
20-
"dependencies"
21-
],
11+
"labels": ["dependencies"],
2212
"automerge": true,
2313
"automergeType": "pr"
2414
},
2515
{
26-
"matchPackagePatterns": [
27-
"*"
28-
],
29-
"matchUpdateTypes": [
30-
"major"
31-
],
16+
"matchPackagePatterns": ["*"],
17+
"matchUpdateTypes": ["major"],
3218
"groupName": "all major dependencies",
3319
"groupSlug": "all-major",
34-
"labels": [
35-
"dependencies",
36-
"breaking"
37-
]
20+
"labels": ["dependencies", "breaking"]
3821
}
3922
]
4023
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"devDependencies": {
4343
"@commitlint/cli": "^17.7.1",
4444
"@commitlint/config-conventional": "^17.7.0",
45-
"@dvcol/eslint-plugin-presets": "^1.3.9",
45+
"@dvcol/eslint-plugin-presets": "^1.3.10",
4646
"@dvcol/stylelint-plugin-presets": "^1.2.1",
4747
"@tsconfig/node20": "^20.1.2",
4848
"@types/chrome": "^0.0.243",

pnpm-lock.yaml

+6-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/AboutView.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<style>
8-
@media (min-width: 1024px) {
8+
@media (width >= 1024px) {
99
.about {
10-
min-height: 100vh;
1110
display: flex;
1211
align-items: center;
12+
min-height: 100vh;
1313
}
1414
}
1515
</style>

src/components/WelcomeItem.vue

+18-19
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<style scoped>
1616
.item {
17-
margin-top: 2rem;
1817
display: flex;
18+
margin-top: 2rem;
1919
}
2020
2121
.details {
@@ -29,57 +29,56 @@ i {
2929
place-content: center;
3030
width: 32px;
3131
height: 32px;
32-
3332
color: var(--color-text);
3433
}
3534
3635
h3 {
37-
font-size: 1.2rem;
38-
font-weight: 500;
3936
margin-bottom: 0.4rem;
4037
color: var(--color-heading);
38+
font-weight: 500;
39+
font-size: 1.2rem;
4140
}
4241
43-
@media (min-width: 1024px) {
42+
@media (width >= 1024px) {
4443
.item {
4544
margin-top: 0;
4645
padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
4746
}
4847
4948
i {
49+
position: absolute;
5050
top: calc(50% - 25px);
5151
left: -26px;
52-
position: absolute;
53-
border: 1px solid var(--color-border);
54-
background: var(--color-background);
55-
border-radius: 8px;
5652
width: 50px;
5753
height: 50px;
54+
background: var(--color-background);
55+
border: 1px solid var(--color-border);
56+
border-radius: 8px;
5857
}
5958
60-
.item:before {
61-
content: ' ';
62-
border-left: 1px solid var(--color-border);
59+
.item::before {
6360
position: absolute;
64-
left: 0;
6561
bottom: calc(50% + 25px);
62+
left: 0;
6663
height: calc(50% - 25px);
64+
border-left: 1px solid var(--color-border);
65+
content: ' ';
6766
}
6867
69-
.item:after {
70-
content: ' ';
71-
border-left: 1px solid var(--color-border);
68+
.item::after {
7269
position: absolute;
73-
left: 0;
7470
top: calc(50% + 25px);
71+
left: 0;
7572
height: calc(50% - 25px);
73+
border-left: 1px solid var(--color-border);
74+
content: ' ';
7675
}
7776
78-
.item:first-of-type:before {
77+
.item:first-of-type::before {
7978
display: none;
8079
}
8180
82-
.item:last-of-type:after {
81+
.item:last-of-type::after {
8382
display: none;
8483
}
8584
}

src/stores/counter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const useCounterStore = defineStore({
1010
},
1111
actions: {
1212
increment() {
13-
this.counter++;
13+
this.counter += 1;
1414
},
1515
},
1616
});

0 commit comments

Comments
 (0)