Skip to content

Commit 79efaf9

Browse files
authored
fix: VCSSSelector location & use eslint v9 (#358)
* chore: use eslint v9 * fix selector location * fix
1 parent 7235417 commit 79efaf9

File tree

18 files changed

+2229
-2190
lines changed

18 files changed

+2229
-2190
lines changed

.changeset/selfish-squids-sneeze.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-vue-scoped-css": patch
3+
---
4+
5+
fix: vcssselector location

.devcontainer/devcontainer.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
33
{
4-
"name": "Node.js & TypeScript",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18",
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18",
77

8-
// Features to add to the dev container. More info: https://containers.dev/features.
9-
// "features": {},
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
1010

11-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12-
// "forwardPorts": [],
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
// "forwardPorts": [],
1313

14-
// Use 'postCreateCommand' to run commands after the container is created.
15-
"postCreateCommand": "npm install"
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
"postCreateCommand": "npm install"
1616

17-
// Configure tool-specific properties.
18-
// "customizations": {},
17+
// Configure tool-specific properties.
18+
// "customizations": {},
1919

20-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
21-
// "remoteUser": "root"
20+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
21+
// "remoteUser": "root"
2222
}

.eslintignore

-14
This file was deleted.

.eslintrc.js

-183
This file was deleted.

.github/workflows/GHPages.yml

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v4
2828
- uses: actions/setup-node@v4
29-
with:
30-
node-version: 18
3129
- name: Install Packages
3230
run: npm install
3331
- name: Build docs

.github/workflows/NodeCI.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
15-
with:
16-
node-version: 16
1715
- name: Install Packages
1816
run: npm install
1917
- name: Lint
@@ -22,7 +20,7 @@ jobs:
2220
runs-on: ubuntu-latest
2321
strategy:
2422
matrix:
25-
node-version: [12.x, 14.x, 16.x]
23+
node-version: [18, 20, 22]
2624
steps:
2725
- uses: actions/checkout@v4
2826
- name: Use Node.js ${{ matrix.node-version }}
@@ -35,17 +33,22 @@ jobs:
3533
run: npm run build
3634
- name: Test
3735
run: npm test
38-
test-with-eslint9:
36+
test-with-eslint8:
3937
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
node-version: [12.x, 14.x, 16.x]
4041
steps:
4142
- uses: actions/checkout@v4
42-
- name: Use Node.js
43+
- name: Use Node.js ${{ matrix.node-version }}
4344
uses: actions/setup-node@v4
45+
with:
46+
node-version: ${{ matrix.node-version }}
4447
- name: Install Target Packages
4548
run: |+
46-
npm i -D eslint@^9.0.0-0 --legacy-peer-deps
49+
npm i -D eslint@^8.0.0
4750
npx rimraf node_modules
48-
npm install -f
51+
npm install
4952
- name: Test
5053
run: npm test
5154
test-with-eslint6:
@@ -96,6 +99,6 @@ jobs:
9699
- name: Install Coveralls
97100
run: npm i -D coveralls
98101
- name: Coveralls GitHub Action
99-
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
102+
uses: coverallsapp/[email protected]
100103
with:
101104
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/Release.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ jobs:
1616
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717
fetch-depth: 0
1818

19-
- name: Setup Node.js 16
19+
- name: Setup Node.js
2020
uses: actions/setup-node@v4
21-
with:
22-
node-version: 16
2321

2422
- name: Install Dependencies
2523
run: npm install

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
force=true

docs/.vitepress/build-system/build.mts

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import path from "path";
66
import fs from "fs";
77
import { fileURLToPath } from "url";
88

9-
const dirname = path.dirname(
10-
fileURLToPath(
11-
import.meta.url,
12-
),
13-
);
9+
const dirname = path.dirname(fileURLToPath(import.meta.url));
1410

1511
build(
1612
path.join(dirname, "./src/vue-eslint-parser.mjs"),

0 commit comments

Comments
 (0)