Skip to content

Commit

Permalink
chore: update deps, use biome, format code
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs committed Sep 14, 2024
1 parent 0ab65bb commit ed9dc44
Show file tree
Hide file tree
Showing 128 changed files with 3,489 additions and 2,653 deletions.
79 changes: 0 additions & 79 deletions .eslintrc.json

This file was deleted.

34 changes: 17 additions & 17 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[json]": {
"editor.formatOnSave": false
},
"javascript.format.semicolons": "insert",
"typescript.format.semicolons": "insert",
"typescript.preferences.quoteStyle": "double",
"javascript.preferences.quoteStyle": "double"
}
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[json]": {
"editor.formatOnSave": false
},
"javascript.format.semicolons": "insert",
"typescript.format.semicolons": "insert",
"typescript.preferences.quoteStyle": "double",
"javascript.preferences.quoteStyle": "double"
}
64 changes: 64 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"useKeyWithClickEvents": {
"level": "off"
}
},
"style": {
"noNonNullAssertion": {
"level": "off"
}
},
"suspicious": {
"noAssignInExpressions": {
"level": "off"
},
"noExplicitAny": {
"level": "warn"
}
},
"correctness": {
"useExhaustiveDependencies": {
"level": "warn"
}
}
}
},
"json": {
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"parser": {
"allowComments": true
}
},
"javascript": {
"formatter": {
"enabled": true,
"lineEnding": "crlf",
"arrowParentheses": "always",
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 120,
"quoteProperties": "asNeeded",
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all"
}
},
"files": {
"ignoreUnknown": true,
"include": ["*.js", "*.json", "*.ts", "*.tsx", "*.jsx", "*.mjs"],
"ignore": ["dist/**/*", "node_modules/**/*"]
}
}
102 changes: 46 additions & 56 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,48 @@
{
"name": "bunny",
"private": true,
"author": {
"name": "Pyoncord Team",
"url": "https://github.com/pyoncord"
},
"scripts": {
"build": "node scripts/build.mjs",
"serve": "node scripts/serve.mjs",
"serve:adb": "pnpm run serve --adb",
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx"
},
"license": "BSD-3-Clause",
"devDependencies": {
"@swc/core": "^1.7.0",
"@swc/helpers": "^0.5.12",
"@types/node": "^20.14.11",
"@types/yargs-parser": "^21.0.3",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"@typescript-eslint/typescript-estree": "^7.16.1",
"chalk": "^5.3.0",
"esbuild": "^0.20.2",
"esbuild-plugin-globals": "^0.2.0",
"eslint": "^8.57.0",
"eslint-plugin-import-alias": "^1.2.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unused-imports": "^3.2.0",
"typescript": "^5.5.3",
"yargs-parser": "^21.1.1"
},
"dependencies": {
"@gullerya/object-observer": "^6.1.3",
"@shopify/react-native-skia": "^1.3.8",
"@tanstack/react-query": "^5.51.16",
"@types/chroma-js": "~2.4.4",
"@types/lodash": "~4.17.7",
"@types/react": "18.2.60",
"@types/react-native": "0.72.3",
"es-toolkit": "^1.13.1",
"fuzzysort": "^3.0.2",
"intl-messageformat": "^10.5.14",
"moment": "2.22.2",
"react-native-reanimated": "^3.6.2",
"spitroast": "^1.4.4",
"type-fest": "^4.22.1"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"react",
"react-native"
]
}
"name": "bunny",
"private": true,
"author": {
"name": "Pyoncord Team",
"url": "https://github.com/pyoncord"
},
"scripts": {
"build": "node scripts/build.mjs",
"serve": "node scripts/serve.mjs",
"serve:adb": "pnpm run serve --adb",
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx"
},
"license": "BSD-3-Clause",
"devDependencies": {
"@biomejs/biome": "^1.9.0",
"@swc/core": "^1.7.26",
"@swc/helpers": "^0.5.13",
"@types/node": "^20.16.5",
"@types/yargs-parser": "^21.0.3",
"chalk": "^5.3.0",
"esbuild": "^0.20.2",
"esbuild-plugin-globals": "^0.2.0",
"typescript": "^5.6.2",
"yargs-parser": "^21.1.1"
},
"dependencies": {
"@gullerya/object-observer": "^6.1.3",
"@shopify/react-native-skia": "^1.3.8",
"@tanstack/react-query": "^5.51.16",
"@types/chroma-js": "~2.4.4",
"@types/lodash": "~4.17.7",
"@types/react": "18.2.60",
"@types/react-native": "0.72.3",
"es-toolkit": "^1.13.1",
"fuzzysort": "^3.0.2",
"intl-messageformat": "^10.5.14",
"moment": "2.22.2",
"react-native-reanimated": "^3.6.2",
"spitroast": "^1.4.4",
"type-fest": "^4.22.1"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": ["react", "react-native"]
}
}
}
}
2 changes: 1 addition & 1 deletion scripts/adb.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck
import { execSync } from "child_process";
import { execSync } from "node:child_process";

const packageName = process.env.DISCORD_PACKAGE_NAME ?? "com.discord";

Expand Down
Loading

0 comments on commit ed9dc44

Please sign in to comment.