Skip to content

Commit e9e1b2d

Browse files
committed
Merge branch 'master' into tsdown
2 parents e5341e6 + 88a787e commit e9e1b2d

20 files changed

Lines changed: 1362 additions & 1926 deletions

‎.editorconfig‎

Lines changed: 0 additions & 358 deletions
Large diffs are not rendered by default.

‎.github/workflows/main.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
cache-dependency-path: "**/yarn.lock"
1616
- run: yarn install
1717
- run: yarn lint
18+
- run: yarn fmt:check
19+
- run: yarn knip
1820

1921
build:
2022
runs-on: ${{ matrix.os }}

‎.idea/prettier.xml‎

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

‎.lefthook.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pre-commit:
2+
parallel: true
3+
jobs:
4+
- run: mise exec -- yarn fmt
5+
stage_fixed: true
6+
- run: mise exec -- yarn lint
7+
- run: mise exec -- yarn build
8+
- run: mise exec -- yarn install --mode=update-lockfile && git add yarn.lock
9+
- run: mise exec -- yarn test/ install --mode=update-lockfile && git add test/yarn.lock
10+
- run: mise exec -- yarn knip

‎.mise.toml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[tools]
2+
lefthook = "latest"
3+
node = "24"
4+
"npm:corepack" = "latest"
5+
6+
[hooks]
7+
postinstall = "lefthook install"

‎.oxfmtrc.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 120,
4+
"sortPackageJson": false,
5+
"ignorePatterns": ["CHANGELOG.md"]
6+
}

‎.oxlintrc.json‎

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript"],
4+
"categories": {
5+
"correctness": "off"
6+
},
7+
"env": {
8+
"builtin": true,
9+
"node": true
10+
},
11+
"ignorePatterns": ["**/dist/", "test/projects/"],
12+
"rules": {
13+
"constructor-super": "error",
14+
"for-direction": "error",
15+
"getter-return": "error",
16+
"no-async-promise-executor": "error",
17+
"no-case-declarations": "error",
18+
"no-class-assign": "error",
19+
"no-compare-neg-zero": "error",
20+
"no-cond-assign": "error",
21+
"no-const-assign": "error",
22+
"no-constant-binary-expression": "error",
23+
"no-constant-condition": "error",
24+
"no-control-regex": "error",
25+
"no-debugger": "error",
26+
"no-delete-var": "error",
27+
"no-dupe-class-members": "error",
28+
"no-dupe-else-if": "error",
29+
"no-dupe-keys": "error",
30+
"no-duplicate-case": "error",
31+
"no-empty": [
32+
"error",
33+
{
34+
"allowEmptyCatch": true
35+
}
36+
],
37+
"no-empty-character-class": "error",
38+
"no-empty-pattern": "error",
39+
"no-empty-static-block": "error",
40+
"no-ex-assign": "error",
41+
"no-extra-boolean-cast": "error",
42+
"no-fallthrough": "error",
43+
"no-func-assign": "error",
44+
"no-global-assign": "error",
45+
"no-import-assign": "error",
46+
"no-invalid-regexp": "error",
47+
"no-irregular-whitespace": "error",
48+
"no-loss-of-precision": "error",
49+
"no-misleading-character-class": "error",
50+
"no-new-native-nonconstructor": "error",
51+
"no-nonoctal-decimal-escape": "error",
52+
"no-obj-calls": "error",
53+
"no-prototype-builtins": "error",
54+
"no-redeclare": "error",
55+
"no-regex-spaces": "error",
56+
"no-self-assign": "error",
57+
"no-setter-return": "error",
58+
"no-shadow-restricted-names": "error",
59+
"no-sparse-arrays": "error",
60+
"no-this-before-super": "error",
61+
"no-unexpected-multiline": "error",
62+
"no-unreachable": "error",
63+
"no-unsafe-finally": "error",
64+
"no-unsafe-negation": "error",
65+
"no-unsafe-optional-chaining": "error",
66+
"no-unused-labels": "error",
67+
"no-unused-private-class-members": "error",
68+
"no-unused-vars": "error",
69+
"no-useless-backreference": "error",
70+
"no-useless-catch": "error",
71+
"no-useless-escape": "error",
72+
"no-with": "error",
73+
"require-yield": "error",
74+
"use-isnan": "error",
75+
"valid-typeof": "error",
76+
"no-array-constructor": "error",
77+
"no-unused-expressions": "error",
78+
"prefer-const": [
79+
"error",
80+
{
81+
"destructuring": "all"
82+
}
83+
],
84+
"typescript/ban-ts-comment": "error",
85+
"typescript/no-duplicate-enum-values": "error",
86+
"typescript/no-empty-object-type": [
87+
"error",
88+
{
89+
"allowInterfaces": "with-single-extends"
90+
}
91+
],
92+
"typescript/no-explicit-any": "error",
93+
"typescript/no-extra-non-null-assertion": "error",
94+
"typescript/no-misused-new": "error",
95+
"typescript/no-namespace": [
96+
"error",
97+
{
98+
"allowDeclarations": true
99+
}
100+
],
101+
"typescript/no-non-null-asserted-optional-chain": "error",
102+
"typescript/no-require-imports": "error",
103+
"typescript/no-this-alias": "error",
104+
"typescript/no-unnecessary-type-constraint": "error",
105+
"typescript/no-unsafe-declaration-merging": "error",
106+
"typescript/no-unsafe-function-type": "error",
107+
"typescript/no-wrapper-object-types": "error",
108+
"typescript/prefer-as-const": "error",
109+
"typescript/prefer-namespace-keyword": "error",
110+
"typescript/triple-slash-reference": "error",
111+
"typescript/no-import-type-side-effects": "error",
112+
"typescript/consistent-type-imports": [
113+
"error",
114+
{
115+
"fixStyle": "inline-type-imports"
116+
}
117+
]
118+
},
119+
"overrides": [
120+
{
121+
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
122+
"rules": {
123+
"constructor-super": "off",
124+
"getter-return": "off",
125+
"no-class-assign": "off",
126+
"no-const-assign": "off",
127+
"no-dupe-class-members": "off",
128+
"no-dupe-keys": "off",
129+
"no-func-assign": "off",
130+
"no-import-assign": "off",
131+
"no-new-native-nonconstructor": "off",
132+
"no-obj-calls": "off",
133+
"no-redeclare": "off",
134+
"no-setter-return": "off",
135+
"no-this-before-super": "off",
136+
"no-unreachable": "off",
137+
"no-unsafe-negation": "off",
138+
"no-var": "error",
139+
"no-with": "off",
140+
"prefer-rest-params": "error",
141+
"prefer-spread": "error"
142+
}
143+
},
144+
{
145+
"files": ["*.js"],
146+
"rules": {
147+
"typescript/no-require-imports": "off"
148+
}
149+
}
150+
]
151+
}

‎.yarnrc.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
nodeLinker: node-modules
2+
3+
npmMinimalAgeGate: 3d

‎README.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![npm version](https://img.shields.io/npm/v/typescript-transform-paths.svg)](https://www.npmjs.com/package/typescript-transform-paths)
66
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FLeDDGroup%2Ftypescript-transform-paths%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/LeDDGroup/typescript-transform-paths/goto?ref=master)
77
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
8-
[![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
98

109
</div>
1110

@@ -203,7 +202,7 @@ import "normally-transformed"; // This will remain 'normally-transformed' even t
203202
## Project Guidelines for Contributors
204203

205204
- Package Manager: `yarn` (`yarn install`)
206-
- Format and lint the code before commit: `prettier` (`yarn format && yarn lint`)
205+
- Format and lint the code before commit: `oxfmt` (`yarn format && yarn lint`)
207206
- Commit messages: [Conventional Commit Specs](https://www.conventionalcommits.org/en/v1.0.0/)
208207
- Releases: `changelogen` (`yarn release`)
209208

@@ -218,7 +217,7 @@ GH_TOKEN=$(gh auth token) yarn release
218217

219218
## Maintainers
220219

221-
<!-- prettier-ignore-start -->
220+
<!-- oxfmt-ignore-start -->
222221
<!-- markdownlint-disable -->
223222
<table>
224223
<tr>

‎eslint.config.mjs‎

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

0 commit comments

Comments
 (0)