Skip to content

Commit 2262e7f

Browse files
JounQinphun-ky
andauthored
feat: migrate to TypeScript with 100% compatibility (#1179)
Co-authored-by: Alexander Vassbotn <[email protected]>
1 parent a624d09 commit 2262e7f

Some content is hidden

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

49 files changed

+5905
-1380
lines changed

.all-contributorsrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@
346346
"name": "Jonathan Rehm",
347347
"avatar_url": "https://avatars.githubusercontent.com/u/999845?v=4",
348348
"profile": "https://jonathan.rehm.me/",
349-
"contributions": ["bug", "code"]
349+
"contributions": [
350+
"bug",
351+
"code"
352+
]
350353
},
351354
{
352355
"login": "gwhitney",

.changeset/pink-dogs-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"prettier-eslint": minor
3+
---
4+
5+
feat: migrate to TypeScript with 100% compatibility

.eslintignore

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

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ jobs:
2121
fail-fast: false
2222

2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v4
2525

26-
- name: Use Node.js ${{ matrix.node }}
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version: ${{ matrix.node }}
30-
cache: yarn
26+
- name: Use Node.js ${{ matrix.node }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node }}
30+
cache: yarn
3131

32-
- name: Install dependencies
33-
run: yarn --immutable
32+
- name: Install dependencies
33+
run: yarn --immutable
3434

35-
- name: Lint, test, and build
36-
run: yarn start validate
35+
- name: Lint, test, and build
36+
run: yarn start validate
3737

38-
- name: Check test coverage
39-
uses: codecov/codecov-action@v5
40-
with:
41-
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
38+
- name: Check test coverage
39+
uses: codecov/codecov-action@v5
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dist
88
.yarn/*
99
!.yarn/releases
1010
!.yarn/plugins
11+
!test/fixtures/paths/node_modules

.prettierignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
11
.yarn
2-
node_modules
3-
.nyc_output
4-
coverage
5-
dist
6-
tests/fixtures/

.prettierrc.json

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

.prettierrc.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// @ts-check
2+
3+
/** @import { Config, Plugin } from 'prettier' */
4+
5+
import base from '@1stg/prettier-config/semi';
6+
import * as jsdoc from 'prettier-plugin-jsdoc';
7+
import * as jsdocType from 'prettier-plugin-jsdoc-type';
8+
import * as svelte from 'prettier-plugin-svelte';
9+
10+
/** @type {Config} */
11+
const config = {
12+
...base,
13+
plugins: [
14+
.../** @type {Plugin[]} */ (base.plugins),
15+
jsdoc,
16+
jsdocType,
17+
svelte,
18+
],
19+
};
20+
21+
export default config;

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ nodeLinker: node-modules
55
plugins:
66
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
77
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
8-
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
8+
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
99

1010
yarnPath: .yarn/releases/yarn-4.9.1.cjs

0 commit comments

Comments
 (0)