Fix various issues

This commit is contained in:
Alex 2023-08-24 07:23:35 -04:00
parent fda7f22872
commit 743dce09ae
5 changed files with 15 additions and 9 deletions

3
dist/package.json vendored
View File

@ -1,8 +1,9 @@
{
"name": "@aet/eslint-rules",
"version": "0.0.1-beta.28",
"version": "0.0.1-beta.30",
"license": "UNLICENSED",
"peerDependencies": {
"esbin": "^0.0.2",
"typescript": "^5.1.6"
},
"dependencies": {

View File

@ -1,4 +1,4 @@
#!/usr/bin/env -S node -r esbin
#!/usr/bin/env tsx
import assert from 'node:assert';
import { readFileSync } from 'node:fs';
import { resolve, extname, relative } from 'node:path';

15
pull.sh
View File

@ -1,6 +1,11 @@
#!/bin/bash
(cd eslint-plugin-import && git pull)
(cd eslint-plugin-jsx-a11y && git pull)
(cd jsx-ast-utils && git pull)
(cd eslint-plugin-react && git pull)
(cd eslint-plugin-n && git pull)
pull() {
echo "🚛 Pulling $1"
(cd "$1" && git pull)
}
pull eslint-plugin-import
pull eslint-plugin-jsx-a11y
pull jsx-ast-utils
pull eslint-plugin-react
pull eslint-plugin-n

View File

@ -1,4 +1,4 @@
#!/usr/bin/env -S node -r esbin
#!/usr/bin/env tsx
import { readdirSync, writeFileSync } from 'node:fs';
import { camelCase } from 'lodash';

View File

@ -11,7 +11,7 @@ function tryRequire(candidates: string[]) {
}
}
tryRequire(['esbin', 'esbuild-register', 'ts-node/register/transpile-only']);
tryRequire(['esbin/register', 'esbuild-register', 'ts-node/register/transpile-only']);
const folders = resolve(process.cwd(), 'eslint-local-rules');
const files = fs.readdirSync(folders);