Skip to content

Commit eca95b4

Browse files
committed
chore: repository maintenance
1 parent b38d90b commit eca95b4

File tree

13 files changed

+42979
-17313
lines changed

13 files changed

+42979
-17313
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "future-architect/eslint-plugin-vue-scoped-css"
7+
}
8+
],
9+
"commit": false,
10+
"linked": [],
11+
"access": "restricted",
12+
"baseBranch": "master",
13+
"updateInternalDependencies": "patch",
14+
"bumpVersionsWithWorkspaceProtocolOnly": true,
15+
"ignore": []
16+
}

.github/FUNDING.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
# These are supported funding model platforms
22

33
github: ota-meshi
4-
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
liberapay: # Replace with a single Liberapay username
10-
issuehunt: # Replace with a single IssueHunt username
11-
otechie: # Replace with a single Otechie username
12-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/GHPages.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ jobs:
3131
- name: Install Packages
3232
run: npm install
3333
- name: Build docs
34-
run: |+
35-
export NODE_OPTIONS=--openssl-legacy-provider
36-
npm run docs:build
34+
run: npm run docs:build
3735
- name: Setup Pages
3836
uses: actions/configure-pages@v3
3937
- name: Upload artifact

.github/workflows/NodeCI.yml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,88 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [master]
6-
pull_request:
7-
branches: [master]
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
88

99
jobs:
10-
lint:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
15-
with:
16-
node-version: 16
17-
- name: Install Packages
18-
run: npm install
19-
- name: Lint
20-
run: npm run lint
21-
test:
22-
runs-on: ubuntu-latest
23-
strategy:
24-
matrix:
25-
node-version: [12.x, 14.x, 16.x]
26-
steps:
27-
- uses: actions/checkout@v3
28-
- name: Use Node.js ${{ matrix.node-version }}
29-
uses: actions/setup-node@v3
30-
with:
31-
node-version: ${{ matrix.node-version }}
32-
- name: Install Packages
33-
run: npm install
34-
- name: build
35-
run: npm run build
36-
- name: Test
37-
run: npm test
38-
test-with-eslint6:
39-
runs-on: ubuntu-latest
40-
strategy:
41-
matrix:
42-
node-version: [12.x]
43-
steps:
44-
- uses: actions/checkout@v3
45-
- name: Use Node.js ${{ matrix.node-version }}
46-
uses: actions/setup-node@v3
47-
with:
48-
node-version: ${{ matrix.node-version }}
49-
- name: Install Target Packages
50-
run: |+
51-
npm i -D eslint@6.0.0
52-
npx rimraf node_modules
53-
npm install
54-
- name: Test
55-
run: npm test
56-
test-with-eslint7:
57-
runs-on: ubuntu-latest
58-
strategy:
59-
matrix:
60-
node-version: [14.x]
61-
steps:
62-
- uses: actions/checkout@v3
63-
- name: Use Node.js ${{ matrix.node-version }}
64-
uses: actions/setup-node@v3
65-
with:
66-
node-version: ${{ matrix.node-version }}
67-
- name: Install Target Packages
68-
run: |+
69-
npm i -D eslint@^7.0.0
70-
npx rimraf node_modules
71-
npm install
72-
- name: Test
73-
run: npm test
74-
test-and-coverage:
75-
runs-on: ubuntu-latest
76-
steps:
77-
- uses: actions/checkout@v3
78-
- uses: actions/setup-node@v3
79-
- name: Install Packages
80-
run: npm install
81-
- name: Test
82-
run: npm run test:nyc
83-
- name: Install Coveralls
84-
run: npm i -D coveralls
85-
- name: Coveralls GitHub Action
86-
uses: coverallsapp/github-action@1.1.3
87-
with:
88-
github-token: ${{ secrets.GITHUB_TOKEN }}
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
- name: Install Packages
18+
run: npm install
19+
- name: Lint
20+
run: npm run lint
21+
test:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
node-version: [12.x, 14.x, 16.x]
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
- name: Install Packages
33+
run: npm install
34+
- name: build
35+
run: npm run build
36+
- name: Test
37+
run: npm test
38+
test-with-eslint6:
39+
runs-on: ubuntu-latest
40+
strategy:
41+
matrix:
42+
node-version: [12.x]
43+
steps:
44+
- uses: actions/checkout@v3
45+
- name: Use Node.js ${{ matrix.node-version }}
46+
uses: actions/setup-node@v3
47+
with:
48+
node-version: ${{ matrix.node-version }}
49+
- name: Install Target Packages
50+
run: |+
51+
npm i -D eslint@6.0.0
52+
npx rimraf node_modules
53+
npm install
54+
- name: Test
55+
run: npm test
56+
test-with-eslint7:
57+
runs-on: ubuntu-latest
58+
strategy:
59+
matrix:
60+
node-version: [14.x]
61+
steps:
62+
- uses: actions/checkout@v3
63+
- name: Use Node.js ${{ matrix.node-version }}
64+
uses: actions/setup-node@v3
65+
with:
66+
node-version: ${{ matrix.node-version }}
67+
- name: Install Target Packages
68+
run: |+
69+
npm i -D eslint@^7.0.0
70+
npx rimraf node_modules
71+
npm install
72+
- name: Test
73+
run: npm test
74+
test-and-coverage:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v3
78+
- uses: actions/setup-node@v3
79+
- name: Install Packages
80+
run: npm install
81+
- name: Test
82+
run: npm run test:nyc
83+
- name: Install Coveralls
84+
run: npm i -D coveralls
85+
- name: Coveralls GitHub Action
86+
uses: coverallsapp/github-action@1.1.3
87+
with:
88+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/NpmPublish.yml

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

.github/workflows/Release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v3
15+
with:
16+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17+
fetch-depth: 0
18+
19+
- name: Setup Node.js 16
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 16
23+
24+
- name: Install Dependencies
25+
run: npm install
26+
27+
- name: Create Release Pull Request or Publish to npm
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
32+
version: npm run version:ci
33+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
34+
publish: npm run release
35+
commit: "chore: release eslint-plugin-vue-scoped-css"
36+
title: "chore: release eslint-plugin-vue-scoped-css"
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/stale.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Close stale issues and PRs
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
10+
jobs:
11+
stale:
12+
if: github.repository == 'future-architect/eslint-plugin-vue-scoped-css'
13+
name: Close stale issues with missing information
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@v7
17+
with:
18+
any-of-labels: "needs repro,needs info,needs more info"
19+
days-before-stale: 60
20+
days-before-close: 14
21+
stale-issue-message: This issue is is stale because it missing information and has been open for 60 days with no activity.
22+
stale-pr-message: This PR is is stale because it missing information and has been open for 60 days with no activity.
23+
close-issue-message: >
24+
This issue has been automatically closed because we haven't received a
25+
response from the original author 🙈. This automation helps keep the issue
26+
tracker clean from issues that aren't actionable. Please reach out if you
27+
have more information for us! 🙂
28+
close-pr-message: >
29+
This PR has been automatically closed because we haven't received a
30+
response from the original author 🙈. This automation helps keep the issue
31+
tracker clean from PRs that aren't actionable. Please reach out if you
32+
have more information for us! 🙂

lib/rules/enforce-style-type.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare const module: {
1111
};
1212

1313
const styleTypesAttrs = ["scoped", "module"] as const;
14-
type StyleTypes = "plain" | typeof styleTypesAttrs[number];
14+
type StyleTypes = "plain" | (typeof styleTypesAttrs)[number];
1515
type AllowsOption = StyleTypes[];
1616

1717
module.exports = {
@@ -170,7 +170,7 @@ module.exports = {
170170
const forbiddenAttrs = node.startTag.attributes.filter(
171171
(attr) =>
172172
styleTypesAttrs.includes(
173-
attr.key.name as typeof styleTypesAttrs[number]
173+
attr.key.name as (typeof styleTypesAttrs)[number]
174174
) && !allows.includes(attr.key.name as StyleTypes)
175175
);
176176

lib/styles/parser/css-parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ export class CSSParser {
204204
protected parseInternal(css: string): postcss.Root {
205205
try {
206206
return postcss.parse(css);
207-
} catch (e: any) {
208-
this.addError(e);
207+
} catch (e: unknown) {
208+
this.addError(e as Error);
209209
return postcssSafeParser(css);
210210
}
211211
}

0 commit comments

Comments
 (0)