Skip to content

Commit d3a5fd0

Browse files
committed
Merge branch 'main' into no-unused-class-name
2 parents e0334b5 + cd709fe commit d3a5fd0

File tree

124 files changed

+9531
-224
lines changed

Some content is hidden

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

124 files changed

+9531
-224
lines changed

.codesandbox/ci.json

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

.commitlintrc.json

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

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// "forwardPorts": [],
2727

2828
// Use 'postCreateCommand' to run commands after the container is created.
29-
"postCreateCommand": "yarn install",
29+
"postCreateCommand": "pnpm install",
3030

3131
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
3232
"remoteUser": "node"

.eslintrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,24 @@ module.exports = {
113113
"@typescript-eslint/no-non-null-assertion": "off",
114114
},
115115
},
116+
{
117+
files: ["src/**"],
118+
rules: {
119+
"@typescript-eslint/no-restricted-imports": [
120+
"error",
121+
{
122+
patterns: [
123+
{
124+
group: ["@typescript-eslint/*"],
125+
message:
126+
"@typescript-eslint is not included in dependencies. Only type-import is allowed.",
127+
allowTypeImports: true,
128+
},
129+
],
130+
},
131+
],
132+
},
133+
},
116134
{
117135
files: ["src/rules/**"],
118136
rules: {},

.github/workflows/GHPages.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v3
28+
- uses: pnpm/action-setup@v2
2829
- uses: actions/setup-node@v3
2930
- name: Install And Build
3031
run: |+
31-
yarn install
32-
yarn update
33-
yarn build
32+
pnpm install
33+
pnpm run update
34+
pnpm run build
3435
export NODE_OPTIONS="--max-old-space-size=8192"
35-
yarn docs:build
36+
pnpm run docs:build
3637
- name: Setup Pages
3738
uses: actions/configure-pages@v3
3839
- name: Upload artifact

.github/workflows/NodeCI.yml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,52 +11,71 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
- uses: pnpm/action-setup@v2
1415
- uses: actions/setup-node@v3
1516
- name: Install Packages
16-
run: yarn install
17+
run: pnpm install
1718
- name: Lint
1819
run: |+
19-
yarn build
20-
yarn lint
20+
pnpm run build
21+
pnpm run lint
2122
build:
2223
runs-on: ubuntu-latest
2324
steps:
2425
- uses: actions/checkout@v3
26+
- uses: pnpm/action-setup@v2
2527
- uses: actions/setup-node@v3
2628
- name: Install Packages
27-
run: yarn install
29+
run: pnpm install
2830
- name: Build
2931
run: |+
30-
yarn update
31-
yarn build
32+
pnpm run update
33+
pnpm run build
3234
test:
3335
name: "Test for ESLint ${{ matrix.eslint }} on ${{ matrix.node }} OS: ${{matrix.os}}"
3436
runs-on: ${{ matrix.os }}
3537
strategy:
3638
matrix:
3739
os: [ubuntu-latest]
3840
eslint: [7, 8]
39-
node: [14, 16, 17, 18]
41+
node: [14, 16, 17, 18, 20]
4042
steps:
4143
- name: Checkout
4244
uses: actions/checkout@v3
45+
- uses: pnpm/action-setup@v2
4346
- name: Setup Node.js ${{ matrix.node }}
4447
uses: actions/setup-node@v3
4548
with:
4649
node-version: ${{ matrix.node }}
4750
- name: Remove @sveltejs/kit # Remove @sveltejs/kit because postinstall fails on old node.
48-
# Use npm because yarn remove needs the lock file.
4951
run: |+
50-
npm uninstall @sveltejs/kit --legacy-peer-deps
52+
pnpm rm @sveltejs/kit
5153
rm -rf node_modules
5254
- name: Install ESLint ${{ matrix.eslint }}
5355
run: |+
54-
yarn add -D eslint@${{ matrix.eslint }} --ignore-engines
56+
pnpm install -D eslint@${{ matrix.eslint }}
5557
rm -rf node_modules
58+
rm -rf pnpm-lock.yaml
5659
if: matrix.eslint != 8
5760
- name: Install Packages
58-
run: yarn install --ignore-engines
61+
run: pnpm install
5962
- name: Test
60-
run: yarn test
63+
run: pnpm run test
6164
- name: Type Coverage
62-
run: yarn typecov
65+
run: pnpm run typecov
66+
update-resources:
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v3
70+
- uses: pnpm/action-setup@v2
71+
- uses: actions/setup-node@v3
72+
with:
73+
node-version: 18
74+
- name: Install Packages
75+
run: pnpm install
76+
- name: Update resources
77+
run: pnpm run update
78+
- name: Check changes
79+
run: |
80+
git add --all && \
81+
git diff-index --cached HEAD --stat --exit-code

.github/workflows/Release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,25 @@ jobs:
2121
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2222
fetch-depth: 0
2323

24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v2
26+
2427
- name: Setup Node.js 16
2528
uses: actions/setup-node@v3
2629
with:
2730
node-version: 16
2831

2932
- name: Install Dependencies
30-
run: yarn
33+
run: pnpm install
3134

3235
- name: Create Release Pull Request or Publish to npm
3336
id: changesets
3437
uses: changesets/action@v1
3538
with:
3639
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
37-
version: yarn version:ci
40+
version: pnpm run version:ci
3841
# This expects you to have a script called release which does a build for your packages and calls changeset publish
39-
publish: yarn release
42+
publish: pnpm run release
4043
commit: "chore: release eslint-plugin-svelte"
4144
title: "chore: release eslint-plugin-svelte"
4245
env:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ dist
101101
.tern-port
102102

103103
## repo
104-
/yarn.lock
104+
/pnpm-lock.yaml
105105
/lib
106106
/.svelte-kit
107107
/.type-coverage

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
package-lock=false
1+
package-lock=false
2+
enable-pre-post-scripts=true

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.type-coverage
33
build
44
/lib
5+
.npmrc

0 commit comments

Comments
 (0)