mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
chore: use biome instead of eslint and prettier
This commit is contained in:
51
biome.json
Normal file
51
biome.json
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json",
|
||||||
|
"organizeImports": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"linter": {
|
||||||
|
"enabled": true,
|
||||||
|
"rules": {
|
||||||
|
"recommended": true,
|
||||||
|
"complexity": {
|
||||||
|
"useLiteralKeys": {
|
||||||
|
"level": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"style": {
|
||||||
|
"noNonNullAssertion": {
|
||||||
|
"level": "off"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"formatter": {
|
||||||
|
"enabled": true,
|
||||||
|
"indentStyle": "space",
|
||||||
|
"indentWidth": 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"javascript": {
|
||||||
|
"formatter": {
|
||||||
|
"enabled": true,
|
||||||
|
"arrowParentheses": "asNeeded",
|
||||||
|
"indentStyle": "space",
|
||||||
|
"indentWidth": 4,
|
||||||
|
"quoteProperties": "asNeeded",
|
||||||
|
"quoteStyle": "single",
|
||||||
|
"semicolons": "asNeeded",
|
||||||
|
"trailingComma": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"ignoreUnknown": true,
|
||||||
|
"include": ["**/*.js", "**/*.json", "**/*.ts"],
|
||||||
|
"ignore": [
|
||||||
|
"**/tsconfig.json",
|
||||||
|
"**/tsconfig.*.json",
|
||||||
|
"dist/**/*",
|
||||||
|
"node_modules/**/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
154
package.json
154
package.json
@@ -1,102 +1,56 @@
|
|||||||
{
|
{
|
||||||
"name": "revanced-helper",
|
"name": "revanced-helper",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "🤖 Bots assisting ReVanced on multiple platforms",
|
"description": "🤖 Bots assisting ReVanced on multiple platforms",
|
||||||
"private": true,
|
"private": true,
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"apis/*",
|
"apis/*",
|
||||||
"bots/*",
|
"bots/*",
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo run build",
|
"build": "turbo run build",
|
||||||
"watch": "turbo run watch",
|
"watch": "turbo run watch",
|
||||||
"format": "prettier --ignore-path .gitignore --write .",
|
"format": "prettier --ignore-path .gitignore --write .",
|
||||||
"format:check": "prettier --ignore-path .gitignore --cache --check .",
|
"format:check": "prettier --ignore-path .gitignore --cache --check .",
|
||||||
"lint": "eslint --ignore-path .gitignore --cache .",
|
"lint": "eslint --ignore-path .gitignore --cache .",
|
||||||
"lint:apply": "eslint --ignore-path .gitignore --fix .",
|
"lint:apply": "eslint --ignore-path .gitignore --fix .",
|
||||||
"commitlint": "commitlint --edit",
|
"commitlint": "commitlint --edit",
|
||||||
"t": "turbo run",
|
"t": "turbo run",
|
||||||
"prepare": "lefthook install"
|
"prepare": "lefthook install"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/revanced/revanced-helper.git"
|
"url": "git+https://github.com/revanced/revanced-helper.git"
|
||||||
},
|
},
|
||||||
"author": "Palm <palmpasuthorn@gmail.com> (https://github.com/PalmDevs)",
|
"author": "Palm <palmpasuthorn@gmail.com> (https://github.com/PalmDevs)",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
"Palm <palmpasuthorn@gmail.com> (https://github.com/PalmDevs)",
|
"Palm <palmpasuthorn@gmail.com> (https://github.com/PalmDevs)",
|
||||||
"ReVanced <nosupport@revanced.app> (https://github.com/revanced)"
|
"ReVanced <nosupport@revanced.app> (https://github.com/revanced)"
|
||||||
],
|
],
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/revanced/revanced-helper/issues"
|
"url": "https://github.com/revanced/revanced-helper/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/revanced/revanced-helper#readme",
|
"homepage": "https://github.com/revanced/revanced-helper#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^18.4.3",
|
"@biomejs/biome": "1.3.3",
|
||||||
"@commitlint/config-conventional": "^18.4.3",
|
"@commitlint/cli": "^18.4.3",
|
||||||
"@tsconfig/strictest": "^2.0.2",
|
"@commitlint/config-conventional": "^18.4.3",
|
||||||
"conventional-changelog-conventionalcommits": "^7.0.2",
|
"@tsconfig/strictest": "^2.0.2",
|
||||||
"eslint": "^8.54.0",
|
"conventional-changelog-conventionalcommits": "^7.0.2",
|
||||||
"eslint-config-prettier": "^9.0.0",
|
"eslint-config-prettier": "^9.0.0",
|
||||||
"eslint-import-resolver-typescript": "^3.6.1",
|
"eslint-import-resolver-typescript": "^3.6.1",
|
||||||
"eslint-plugin-import": "^2.29.0",
|
"eslint-plugin-import": "^2.29.0",
|
||||||
"eslint-plugin-prettier": "^5.0.1",
|
"eslint-plugin-prettier": "^5.0.1",
|
||||||
"lefthook": "^1.5.3",
|
"lefthook": "^1.5.3",
|
||||||
"prettier": "^3.1.0",
|
"semantic-release": "^22.0.8",
|
||||||
"semantic-release": "^22.0.8",
|
"turbo": "^1.10.16",
|
||||||
"turbo": "^1.10.16",
|
"typescript": "^5.3.2"
|
||||||
"typescript": "^5.3.2"
|
},
|
||||||
},
|
"overrides": {
|
||||||
"overrides": {
|
"uuid": ">=9.0.0",
|
||||||
"uuid": ">=9.0.0",
|
"isomorphic-fetch": ">=3.0.0"
|
||||||
"isomorphic-fetch": ">=3.0.0"
|
},
|
||||||
},
|
"trustedDependencies": ["lefthook", "biome", "turbo"]
|
||||||
"eslintConfig": {
|
|
||||||
"root": true,
|
|
||||||
"extends": [
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"plugin:prettier/recommended"
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"import",
|
|
||||||
"prettier"
|
|
||||||
],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"sourceType": "module",
|
|
||||||
"ecmaVersion": "latest"
|
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"import/no-unresolved": "error"
|
|
||||||
},
|
|
||||||
"settings": {
|
|
||||||
"import/parsers": {
|
|
||||||
"@typescript-eslint/parser": [
|
|
||||||
".ts",
|
|
||||||
".tsx"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"import/resolver": {
|
|
||||||
"typescript": {
|
|
||||||
"alwaysTryTypes": true,
|
|
||||||
"project": [
|
|
||||||
"./tsconfig.base.json"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"prettier": {
|
|
||||||
"arrowParens": "avoid",
|
|
||||||
"quoteProps": "as-needed",
|
|
||||||
"tabWidth": 4,
|
|
||||||
"semi": false,
|
|
||||||
"singleQuote": true,
|
|
||||||
"trailingComma": "es5",
|
|
||||||
"endOfLine": "crlf"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user