Skip to content

Commit 14383ff

Browse files
committed
chore: cleanup
1 parent 2c203ef commit 14383ff

File tree

139 files changed

+9909
-12839
lines changed

Some content is hidden

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

139 files changed

+9909
-12839
lines changed

.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
[*.ts]
1+
root = true
2+
3+
[*]
24
indent_style = space
35
indent_size = 2

.eslintignore

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

.eslintrc

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

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/setup-node@v3
3030
with:
3131
node-version: ${{ matrix.node-version }}
32-
cache: 'pnpm'
32+
cache: pnpm
3333

3434
- name: Install Dependencies
3535
run: pnpm install --frozen-lockfile

.github/workflows/codeql.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: "CodeQL"
1+
name: CodeQL
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [main]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [main]
88
schedule:
9-
- cron: "54 14 * * 3"
9+
- cron: '54 14 * * 3'
1010

1111
jobs:
1212
analyze:
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ javascript ]
23+
language: [javascript]
2424

2525
steps:
2626
- name: Checkout
@@ -38,4 +38,4 @@ jobs:
3838
- name: Perform CodeQL Analysis
3939
uses: github/codeql-action/analyze@v2
4040
with:
41-
category: "/language:${{ matrix.language }}"
41+
category: '/language:${{ matrix.language }}'

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
pnpx commitlint --from="$(git merge-base HEAD main)"

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
extends: ['@commitlint/config-conventional'],
33
}

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu(
4+
{ type: 'lib', ignores: ['**/fixtures', 'packages/matchers/src/matchers/generated.ts'], typescript: { tsconfigPath: 'tsconfig.json' } },
5+
)

package.json

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"name": "codemod",
2+
"name": "codemod-esm",
3+
"type": "module",
34
"private": true,
45
"workspaces": {
56
"packages": [
@@ -10,7 +11,23 @@
1011
]
1112
},
1213
"scripts": {
13-
"prepare": "husky install"
14+
"prepare": "husky"
15+
},
16+
"devDependencies": {
17+
"@antfu/eslint-config": "^3.11.2",
18+
"@commitlint/cli": "^19.6.0",
19+
"@commitlint/config-conventional": "^19.6.0",
20+
"@types/jest": "^29.5.14",
21+
"@types/node": "^20.17.9",
22+
"bun": "^1.1.38",
23+
"esbuild": "^0.24.0",
24+
"eslint": "^9.16.0",
25+
"husky": "^9.1.7",
26+
"lerna": "^8.1.9",
27+
"lint-staged": "^15.2.10",
28+
"prettier": "^3.4.2",
29+
"rimraf": "^6.0.1",
30+
"typescript": "^5.7.2"
1431
},
1532
"husky": {
1633
"hooks": {
@@ -20,37 +37,13 @@
2037
},
2138
"lint-staged": {
2239
"*.md": [
23-
"prettier --write"
40+
"eslint --fix"
2441
],
2542
"*.ts": [
2643
"eslint --fix"
2744
],
28-
"package.json": [
29-
"sort-package-json"
45+
"*.json": [
46+
"eslint --fix"
3047
]
31-
},
32-
"prettier": {
33-
"semi": false,
34-
"singleQuote": true
35-
},
36-
"devDependencies": {
37-
"@commitlint/cli": "^18",
38-
"@commitlint/config-conventional": "^18",
39-
"@types/jest": "^29",
40-
"@types/node": "^20",
41-
"@typescript-eslint/eslint-plugin": "^6",
42-
"@typescript-eslint/parser": "^6",
43-
"bun": "^1.0.21",
44-
"esbuild": "^0.19",
45-
"eslint": "^8",
46-
"eslint-config-prettier": "^9",
47-
"eslint-plugin-import": "^2.29.1",
48-
"eslint-plugin-prettier": "^5",
49-
"husky": "^8",
50-
"lerna": "^8",
51-
"lint-staged": "^13.1.2",
52-
"prettier": "^3",
53-
"sort-package-json": "^1.53.1",
54-
"typescript": "^5.3"
5548
}
56-
}
49+
}

0 commit comments

Comments
 (0)