Skip to content

Commit 40a8ca9

Browse files
committed
chore(deps): upgrade eslint
1 parent e0f00ea commit 40a8ca9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1683
-611
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug report
22
description: Create a report to help us improve.
3-
title: "[Function Name] A title for the problem"
4-
labels: ["bug report"]
3+
title: '[Function Name] A title for the problem'
4+
labels: [bug report]
55
body:
66

77
- type: input

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
blank_issues_enabled: true
1+
blank_issues_enabled: true

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature request
22
description: Suggest an idea for this project.
3-
title: "A title for the feature request"
4-
labels: ["feature request"]
3+
title: A title for the feature request
4+
labels: [feature request]
55
body:
66

77
- type: textarea

.github/workflows/code-check.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
steps:
6868
- name: Checkout
6969
uses: actions/checkout@v4
70-
70+
7171
- name: Setup Pnpm
7272
uses: pnpm/action-setup@v3
7373
with:
@@ -93,7 +93,7 @@ jobs:
9393
steps:
9494
- name: Checkout
9595
uses: actions/checkout@v4
96-
96+
9797
- name: Setup Pnpm
9898
uses: pnpm/action-setup@v3
9999
with:
@@ -122,14 +122,14 @@ jobs:
122122
github-token: ${{ secrets.GITHUB_TOKEN }}
123123
flag-name: Unit Test
124124
parallel: true
125-
125+
126126
build:
127127
needs: setup
128128
runs-on: ubuntu-latest
129129
steps:
130130
- name: Checkout
131131
uses: actions/checkout@v4
132-
132+
133133
- name: Setup Pnpm
134134
uses: pnpm/action-setup@v3
135135
with:
@@ -148,13 +148,13 @@ jobs:
148148

149149
- name: Build
150150
run: pnpm build
151-
151+
152152
finish:
153-
needs: unit-test
154-
runs-on: ubuntu-latest
155-
steps:
156-
- name: Coveralls Finished
157-
uses: coverallsapp/github-action@v2
158-
with:
159-
parallel-finished: true
160-
carryforward: "run-1,run-2"
153+
needs: unit-test
154+
runs-on: ubuntu-latest
155+
steps:
156+
- name: Coveralls Finished
157+
uses: coverallsapp/github-action@v2
158+
with:
159+
parallel-finished: true
160+
carryforward: 'run-1,run-2'

.github/workflows/docs-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ jobs:
5252
steps:
5353
- name: Deploy to GitHub Pages
5454
id: deployment
55-
uses: actions/deploy-pages@v4
55+
uses: actions/deploy-pages@v4

.github/workflows/issue-check-helper.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.event.label.name == 'help wanted'
1313
uses: actions-cool/[email protected]
1414
with:
15-
actions: 'create-comment'
15+
actions: create-comment
1616
token: ${{ secrets.GITHUB_TOKEN }}
1717
issue-number: ${{ github.event.issue.number }}
1818
body: |
@@ -22,8 +22,8 @@ jobs:
2222
if: github.event.label.name == 'need reproduce'
2323
uses: actions-cool/[email protected]
2424
with:
25-
actions: 'create-comment'
25+
actions: create-comment
2626
token: ${{ secrets.GITHUB_TOKEN }}
2727
issue-number: ${{ github.event.issue.number }}
2828
body: |
29-
👋 @${{ github.event.issue.user.login }}. Thank you for reporting this issue. In order for us to address it effectively, could you please provide a minimal reproducible demo or step? This will help us better understand the problem and work towards a solution. Thank you!
29+
👋 @${{ github.event.issue.user.login }}. Thank you for reporting this issue. In order for us to address it effectively, could you please provide a minimal reproducible demo or step? This will help us better understand the problem and work towards a solution. Thank you!

.github/workflows/issue-inactive.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Issue Check Inactive
22

33
on:
44
schedule:
5-
- cron: "0 0 1 * *"
5+
- cron: '0 0 1 * *'
66

77
jobs:
88
check-inactive:
@@ -11,5 +11,5 @@ jobs:
1111
- name: check-inactive
1212
uses: actions-cool/issues-helper@v2
1313
with:
14-
actions: 'check-inactive'
15-
inactive-day: 90
14+
actions: check-inactive
15+
inactive-day: 90

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
uses: actions/checkout@v4
5858
with:
5959
fetch-depth: 0
60-
60+
6161
- name: Sync
6262
env:
63-
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6464
run: |
6565
git checkout main
6666
git pull --rebase origin beta
@@ -82,4 +82,4 @@ jobs:
8282
run: |
8383
git checkout main
8484
git pull --rebase origin alpha
85-
git push -f
85+
git push -f

.github/workflows/sync.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18-
18+
1919
- name: Sync
2020
env:
21-
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
run: |
2323
git checkout beta
2424
git pull --rebase origin main
@@ -30,10 +30,10 @@ jobs:
3030
uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
33-
33+
3434
- name: Sync
3535
env:
36-
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
run: |
3838
git checkout alpha
3939
git pull --rebase origin main

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
3-
}
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222
[discord]: https://img.shields.io/badge/chat-on%20discord-7289da.svg?sanitize=true
2323
[discord-url]: https://discord.gg/UbJxnvt2UH
2424

25-
2625
[Changelog](./CHANGELOG.md) · English · [中文](./README.zh_CN.md)
27-
28-
26+
2927
</div>
3028

3129
## ✨Feature
@@ -184,7 +182,7 @@ const StyledDiv = styled.div`
184182

185183
<br>
186184

187-
## ❤ Thanks
185+
## ❤ Thanks
188186

189187
- [styled-components](https://github.com/styled-components).
190188
- [stylis](https://github.com/thysultan/stylis)

eslint.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu({
4+
markdown: false,
5+
ignores: ['**/node_modules/**', '**/dist/**', '**/build/**', '**/coverage/**'],
6+
})

package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,34 @@
11
{
22
"name": "@vue-styled-components/root",
3-
"packageManager": "[email protected]",
43
"private": true,
4+
"packageManager": "[email protected]",
55
"scripts": {
66
"dev": "pnpm build && pnpm -F playground dev",
77
"build": "pnpm typecheck && pnpm -F core build",
88
"test": "pnpm -F core test",
99
"coverage": "pnpm -F core test:coverage",
1010
"docs:dev": "pnpm build && pnpm -F docs docs:dev",
1111
"docs:build": "pnpm build && pnpm -F docs docs:build",
12-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
12+
"lint": "eslint .",
13+
"lint:fix": "eslint . --fix",
1314
"typecheck": "vue-tsc --noEmit",
1415
"prepare": "husky",
1516
"release": "semantic-release"
1617
},
1718
"devDependencies": {
19+
"@antfu/eslint-config": "^4.4.0",
1820
"@commitlint/cli": "^19.2.1",
1921
"@commitlint/config-conventional": "^19.1.0",
2022
"@semantic-release/changelog": "^6.0.3",
2123
"@semantic-release/git": "^10.0.1",
2224
"@testing-library/vue": "^8.1.0",
23-
"@typescript-eslint/eslint-plugin": "^7.4.0",
24-
"@typescript-eslint/parser": "^7.4.0",
2525
"@vitejs/plugin-vue": "^5.2.1",
2626
"@vitejs/plugin-vue-jsx": "^4.1.1",
2727
"@vitest/coverage-v8": "^2.1.8",
28-
"@vue/eslint-config-prettier": "^9.0.0",
2928
"cz-conventional-changelog": "^3.3.0",
30-
"eslint": "^8.57.0",
31-
"eslint-config-prettier": "^9.1.0",
32-
"eslint-plugin-prettier": "^5.1.3",
33-
"eslint-plugin-vue": "^9.24.0",
29+
"eslint": "^9.21.0",
3430
"husky": "^9.0.11",
3531
"jsdom": "^25.0.1",
36-
"prettier": "^3.2.5",
3732
"semantic-release": "^24.1.0",
3833
"typescript": "^5.7.2",
3934
"vite": "^6.0.9",

packages/core/__tests__/css.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { describe, it, expect, afterEach } from 'vitest'
1+
import { cleanup, render } from '@testing-library/vue'
2+
import { afterEach, describe, expect, it } from 'vitest'
23
import { css, styled } from '../index'
3-
import { render, cleanup } from '@testing-library/vue'
44
import { getStyle } from './utils'
55

66
describe('css', () => {

packages/core/__tests__/cssClass.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { describe, it, expect, afterEach } from 'vitest'
1+
import { cleanup, render } from '@testing-library/vue'
2+
import { afterEach, describe, expect, it } from 'vitest'
23
import { cssClass, styled } from '../index'
3-
import { render, cleanup } from '@testing-library/vue'
44
import { getStyle } from './utils'
55

66
describe('css class', () => {
@@ -20,7 +20,7 @@ describe('css class', () => {
2020

2121
const Component = styled.div.attrs({
2222
'data-testid': 'test',
23-
class: result,
23+
'class': result,
2424
})``
2525

2626
const instance = render(Component)

packages/core/__tests__/export.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { ThemeProvider as TP } from '@/src/providers/theme'
12
import { describe, expectTypeOf, it } from 'vitest'
2-
import { ThemeProvider as TP } from '@/src/providers/theme'
3-
import { styled, keyframes, createGlobalStyle, ThemeProvider } from '../index'
3+
import { createGlobalStyle, keyframes, styled, ThemeProvider } from '../index'
44

55
describe('export', () => {
66
it('should export properly functions', async () => {

packages/core/__tests__/keyframes.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { describe, it, expect, afterEach } from 'vitest'
1+
import { cleanup, render } from '@testing-library/vue'
2+
import { afterEach, describe, expect, it } from 'vitest'
23
import { keyframes, styled } from '../index'
3-
import { render, cleanup } from '@testing-library/vue'
44
import { getStyle } from './utils'
55

66
describe('keyframes', () => {

0 commit comments

Comments
 (0)