build: remove eslintrc and husky

This commit is contained in:
amrbashir
2021-11-01 06:19:43 +02:00
parent 410dbc959b
commit 9cba6aa0ec
6 changed files with 2 additions and 43 deletions

View File

@@ -1,17 +0,0 @@
{
"env": {
"es2020": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
}
}

View File

@@ -26,7 +26,6 @@ jobs:
- run: pnpm i
- run: pnpm build
- run: pnpm type-check
- run: pnpm lint
- run: pnpm format
- name: Sync to glitch
run: |

View File

@@ -1,6 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm lint
pnpm type-check
pnpm format

View File

@@ -12,11 +12,9 @@
"tauri-apps"
],
"scripts": {
"prepare": "husky install",
"build": "tsup",
"build": "tsup src/index.ts --clean",
"start": "probot run ./dist/index.js",
"type-check": "tsc --noEmit",
"lint": "eslint src/**/*.ts",
"format": "prettier --write --end-of-line=auto \"./**/*.{js,ts,json}\" --ignore-path .gitignore"
},
"dependencies": {
@@ -24,11 +22,6 @@
},
"devDependencies": {
"@octokit/rest": "18.12.0",
"@typescript-eslint/eslint-plugin": "5.2.0",
"@typescript-eslint/parser": "5.2.0",
"eslint": "8.1.0",
"eslint-config-prettier": "8.3.0",
"husky": "7.0.4",
"prettier": "2.4.1",
"tsup": "5.5.0",
"typescript": "4.4.4"

View File

@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2020",
"target": "esnext",
"module": "esnext",
"strict": true,
"esModuleInterop": true,

View File

@@ -1,10 +0,0 @@
import { Options } from 'tsup'
const config: Options = {
entryPoints: ['src/index.ts'],
outDir: 'dist',
format: ['cjs'],
clean: true,
}
export default config