Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential Audio Fix for Windows #1068

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ bracketSpacing: true
arrowParens: avoid
useTabs: false
endOfLine: lf
singleQuote: false
29 changes: 20 additions & 9 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2023 Vendicated and Vencord contributors
*/

//@ts-check

import stylistic from "@stylistic/eslint-plugin";
import pathAlias from "eslint-plugin-path-alias";
import header from "eslint-plugin-simple-header";
Expand All @@ -16,7 +14,6 @@ import prettier from "eslint-plugin-prettier";

export default tseslint.config(
{ ignores: ["dist"] },

{
files: ["src/**/*.{tsx,ts,mts,mjs,js,jsx}"],
plugins: {
Expand Down Expand Up @@ -48,9 +45,7 @@ export default tseslint.config(
files: ["scripts/header.txt"]
}
],

// ESLint Rules

yoda: "error",
eqeqeq: ["error", "always", { null: "ignore" }],
"prefer-destructuring": [
Expand Down Expand Up @@ -86,14 +81,30 @@ export default tseslint.config(
"use-isnan": "error",
"prefer-const": "error",
"prefer-spread": "error",

// Styling Rules
"stylistic/spaced-comment": ["error", "always", { markers: ["!"] }],
"stylistic/no-extra-semi": "error",

"stylistic/quotes": ["error", "double", { "avoidEscape": true }],

// Import Sorting Rules
"simple-import-sort/imports": ["error", {
"groups": [
// Built-in Node.js modules
["^node:"],
// External packages (electron etc)
["^electron"],
["^@?\\w"],
// Internal modules
["^(renderer|shared|utils)(/.*|$)"],
// Parent and sibling imports
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"]
]
}],
"simple-import-sort/exports": "error",

// Plugin Rules
"importSort/imports": "error",
"importSort/exports": "error",
"unusedImports/no-unused-imports": "error",
"pathAlias/no-relative": "error",
"prettier/prettier": "error"
Expand Down
Loading