Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
/ Linux Public archive

Commit 7c8edb5

Browse files
committed
⚡️ Better AppImage detection & linting
1 parent 08a8afe commit 7c8edb5

23 files changed

+595
-567
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dist
33

44
.vscode
55
.npmrc
6-
*.log
6+
*.log
77
yarn.lock
88

99
src/assets

.eslintrc.js

Lines changed: 27 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,28 @@
11
module.exports = {
2-
"env": {
3-
"es6": true,
4-
"node": true
5-
},
6-
"extends": [
7-
"eslint:recommended",
8-
"plugin:@typescript-eslint/eslint-recommended"
9-
],
10-
"globals": {
11-
"Atomics": "readonly",
12-
"SharedArrayBuffer": "readonly"
13-
},
14-
"parser": "@typescript-eslint/parser",
15-
"parserOptions": {
16-
"ecmaVersion": 2020,
17-
"sourceType": "module"
18-
},
19-
"plugins": [
20-
"@typescript-eslint"
21-
],
22-
"rules": {
23-
"indent": [
24-
"error",
25-
"tab"
26-
],
27-
"linebreak-style": [
28-
"off",
29-
"windows"
30-
],
31-
"quotes": [
32-
"error",
33-
"double"
34-
],
35-
"semi": [
36-
"error",
37-
"always"
38-
]
39-
}
40-
};
2+
env: {
3+
es6: true,
4+
node: true
5+
},
6+
extends: [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/eslint-recommended"
9+
],
10+
globals: {
11+
Atomics: "readonly",
12+
SharedArrayBuffer: "readonly"
13+
},
14+
parser: "@typescript-eslint/parser",
15+
parserOptions: {
16+
ecmaVersion: 2020,
17+
sourceType: "module"
18+
},
19+
plugins: ["@typescript-eslint"],
20+
rules: {
21+
indent: ["error", 2],
22+
quotes: ["error", "double"],
23+
semi: ["error", "always"],
24+
"comma-dangle": ["error", "never"],
25+
"linebreak-style": ["off", "windows"],
26+
"no-console": "off"
27+
}
28+
};

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
54
---
65

76
**Describe the bug**
@@ -20,9 +19,10 @@ A clear and concise description of what you expected to happen.
2019
If applicable, add screenshots to help explain your problem.
2120

2221
**Desktop (please complete the following information):**
23-
- OS: [e.g. iOS]
24-
- Browser [e.g. chrome, safari]
25-
- Version [e.g. 22]
22+
23+
- OS: [e.g. iOS]
24+
- Browser [e.g. chrome, safari]
25+
- Version [e.g. 22]
2626

2727
**Additional context**
2828
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ contact_links:
55
about: Suggest Rich Presence support for a website
66
- name: Official Discord server
77
url: https://discord.premid.app
8-
about: Please use our ticket system for urgent requests!
8+
about: Please use our ticket system for urgent requests!

.github/SUPPORT.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# How to get support
22

3-
## Take a look at the [wiki](https://wiki.premid.app)
3+
## Take a look at the [docs](https://docs.premid.app)
4+
45
Our GitHub wiki is full of information around PreMiD.<br>
56
Take a look and feel free to contribute if you want to add something new.
67

7-
## [Open a issue](https://github.com/PreMiD/PreMiD/issues/new/choose) on [GitHub](https://github.com/PreMiD/PreMiD)
8-
Simply open a issue if you don't feel allright.<br>
9-
*Aand there he goes...*
8+
## [Open a issue](https://github.com/PreMiD/Linux/issues/new/choose) on [GitHub](https://github.com/PreMiD/Linux)
9+
10+
Simply open a issue if you don't feel alright.<br>
11+
_And there he goes..._
12+
13+
## Ask a staff member in [#support](https://discord.premid.app)
1014

11-
## Ask a staff member in [#support](https://discord.gg/WvfVZ8T)
1215
The team is ready to tell you the secrets of the underworld.<br>
13-
Join our [Discord server](https://discord.gg/WvfVZ8T) and find out what we're hiding.
16+
Join our [Discord server](https://discord.premid.app) and find out what we're hiding.

.gitignore

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
# local dist files
12
node_modules
23
dist
4+
src/yarn.lock
5+
src/package.json
6+
7+
# MacOS-generated files
8+
.DS_Store
39

10+
# local VSCode files
411
.vscode
5-
.env
12+
.history
13+
14+
# Yarn logs
615
*.log
716

8-
src/yarn.lock
9-
src/package.json
17+
# Super secure files
18+
.env

.prettierignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# General files
2+
node_modules
3+
package-lock.json
4+
.npmrc
5+
dist
6+
7+
# Markdown files
8+
LICENSE
9+
CODE_OF_CONDUCT.md
10+
README.md
11+
.github/*
12+
13+
# MacOS-generated files
14+
.DS_Store
15+
16+
# local VSCode files
17+
.vscode
18+
.history
19+
20+
# Yarn lock-file and logs
21+
*.log
22+
yarn.lock
23+
24+
# Exceptions for extension recommendations
25+
!.github/workflows

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"trailingComma": "none",
4+
"tabWidth": 2,
5+
"useTabs": false
6+
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
export default interface ExtensionSettings {
2-
/**
3-
* If extension is enabled
4-
*/
5-
enabled: boolean;
6-
/**
7-
* Autolaunch enabled
8-
*/
9-
autoLaunch: boolean;
10-
/**
11-
* Media keys enabled
12-
*/
13-
mediaKeys: boolean;
14-
/**
15-
* title menubar (TrayTitle)
16-
*/
17-
titleMenubar: boolean;
18-
/**
19-
* language of extension
20-
*/
21-
language: string;
22-
}
2+
/**
3+
* If extension is enabled
4+
*/
5+
enabled: boolean;
6+
/**
7+
* Autolaunch enabled
8+
*/
9+
autoLaunch: boolean;
10+
/**
11+
* Media keys enabled
12+
*/
13+
mediaKeys: boolean;
14+
/**
15+
* title menubar (TrayTitle)
16+
*/
17+
titleMenubar: boolean;
18+
/**
19+
* language of extension
20+
*/
21+
language: string;
22+
}

@types/PreMiD/Presence.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import * as Discord from "discord-rpc";
22

33
export default interface Presence {
4-
/**
5-
* Client ID of presence
6-
*/
7-
clientId: string;
8-
/**
9-
* Rich Procedual call connection
10-
*/
11-
rpc: Discord.Client;
12-
/**
13-
* Connection ready?
14-
*/
15-
ready: Boolean;
16-
}
4+
/**
5+
* Client ID of presence
6+
*/
7+
clientId: string;
8+
/**
9+
* Rich Procedual call connection
10+
*/
11+
rpc: Discord.Client;
12+
/**
13+
* Connection ready?
14+
*/
15+
ready: Boolean;
16+
}

0 commit comments

Comments
 (0)