Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mochaaP committed Dec 7, 2024
1 parent 2c203ef commit 14383ff
Show file tree
Hide file tree
Showing 139 changed files with 9,909 additions and 12,839 deletions.
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[*.ts]
root = true

[*]
indent_style = space
indent_size = 2
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

49 changes: 0 additions & 49 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "main" ]
branches: [main]
pull_request:
branches: [ "main" ]
branches: [main]
schedule:
- cron: "54 14 * * 3"
- cron: '54 14 * * 3'

jobs:
analyze:
Expand All @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ javascript ]
language: [javascript]

steps:
- name: Checkout
Expand All @@ -38,4 +38,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
category: '/language:${{ matrix.language }}'
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpx commitlint --from="$(git merge-base HEAD main)"
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
export default {
extends: ['@commitlint/config-conventional'],
}
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import antfu from '@antfu/eslint-config'

export default antfu(
{ type: 'lib', ignores: ['**/fixtures', 'packages/matchers/src/matchers/generated.ts'], typescript: { tsconfigPath: 'tsconfig.json' } },
)
53 changes: 23 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "codemod",
"name": "codemod-esm",
"type": "module",
"private": true,
"workspaces": {
"packages": [
Expand All @@ -10,7 +11,23 @@
]
},
"scripts": {
"prepare": "husky install"
"prepare": "husky"
},
"devDependencies": {
"@antfu/eslint-config": "^3.11.2",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@types/jest": "^29.5.14",
"@types/node": "^20.17.9",
"bun": "^1.1.38",
"esbuild": "^0.24.0",
"eslint": "^9.16.0",
"husky": "^9.1.7",
"lerna": "^8.1.9",
"lint-staged": "^15.2.10",
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"typescript": "^5.7.2"
},
"husky": {
"hooks": {
Expand All @@ -20,37 +37,13 @@
},
"lint-staged": {
"*.md": [
"prettier --write"
"eslint --fix"
],
"*.ts": [
"eslint --fix"
],
"package.json": [
"sort-package-json"
"*.json": [
"eslint --fix"
]
},
"prettier": {
"semi": false,
"singleQuote": true
},
"devDependencies": {
"@commitlint/cli": "^18",
"@commitlint/config-conventional": "^18",
"@types/jest": "^29",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"bun": "^1.0.21",
"esbuild": "^0.19",
"eslint": "^8",
"eslint-config-prettier": "^9",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5",
"husky": "^8",
"lerna": "^8",
"lint-staged": "^13.1.2",
"prettier": "^3",
"sort-package-json": "^1.53.1",
"typescript": "^5.3"
}
}
}
3 changes: 0 additions & 3 deletions packages/cli/.eslintignore

This file was deleted.

95 changes: 0 additions & 95 deletions packages/cli/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 14383ff

Please sign in to comment.