mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
Sets prettier to run on the repo (#91379)
## About The Pull Request Prettier (an auto formatter) is set to only run within the tgui folder currently. This removes that limitation, allowing it to automatically format all supported files in the repo (.js, .html, .yml [etc](https://prettier.io/docs/)) I made a few exceptions for bundled and generated files ## Why It's Good For The Game I'm of the opinion that code should look uniform and am lazy enough to want CTRL-S to format files without having to think beyond that ## Changelog
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
// File Labels
|
||||
//
|
||||
// Add a label based on if a file is modified in the diff
|
||||
@@ -7,118 +6,118 @@
|
||||
// if the edit to the file is removed in a later commit,
|
||||
// the label will not be removed
|
||||
export const file_labels = {
|
||||
'GitHub': {
|
||||
filepaths: ['.github'],
|
||||
},
|
||||
'SQL': {
|
||||
filepaths: ['SQL'],
|
||||
},
|
||||
'Map Edit': {
|
||||
filepaths: ['_maps'],
|
||||
},
|
||||
'Tools': {
|
||||
filepaths: ['tools'],
|
||||
},
|
||||
'Config Update': {
|
||||
filepaths: ['config', 'code/controllers/configuration/entries'],
|
||||
add_only: true,
|
||||
},
|
||||
'Sprites': {
|
||||
filepaths: ['icons'],
|
||||
add_only: true,
|
||||
},
|
||||
'Sound': {
|
||||
filepaths: ['sound'],
|
||||
add_only: true,
|
||||
},
|
||||
'UI': {
|
||||
filepaths: ['tgui'],
|
||||
add_only: true,
|
||||
}
|
||||
}
|
||||
GitHub: {
|
||||
filepaths: [".github"],
|
||||
},
|
||||
SQL: {
|
||||
filepaths: ["SQL"],
|
||||
},
|
||||
"Map Edit": {
|
||||
filepaths: ["_maps"],
|
||||
},
|
||||
Tools: {
|
||||
filepaths: ["tools"],
|
||||
},
|
||||
"Config Update": {
|
||||
filepaths: ["config", "code/controllers/configuration/entries"],
|
||||
add_only: true,
|
||||
},
|
||||
Sprites: {
|
||||
filepaths: ["icons"],
|
||||
add_only: true,
|
||||
},
|
||||
Sound: {
|
||||
filepaths: ["sound"],
|
||||
add_only: true,
|
||||
},
|
||||
UI: {
|
||||
filepaths: ["tgui"],
|
||||
add_only: true,
|
||||
},
|
||||
};
|
||||
|
||||
// Title Labels
|
||||
//
|
||||
// Add a label based on keywords in the title
|
||||
export const title_labels = {
|
||||
'Logging' : {
|
||||
keywords: ['log', 'logging'],
|
||||
},
|
||||
'Removal' : {
|
||||
keywords: ['remove', 'delete'],
|
||||
},
|
||||
'Refactor' : {
|
||||
keywords: ['refactor'],
|
||||
},
|
||||
'Unit Tests' : {
|
||||
keywords: ['unit test'],
|
||||
},
|
||||
'April Fools' : {
|
||||
keywords: ['[april fools]'],
|
||||
},
|
||||
'Do Not Merge' : {
|
||||
keywords: ['[dnm]', '[do not merge]'],
|
||||
},
|
||||
'GBP: No Update' : {
|
||||
keywords: ['[no gbp]'],
|
||||
},
|
||||
'Test Merge Only' : {
|
||||
keywords: ['[tm only]', '[test merge only]'],
|
||||
},
|
||||
}
|
||||
Logging: {
|
||||
keywords: ["log", "logging"],
|
||||
},
|
||||
Removal: {
|
||||
keywords: ["remove", "delete"],
|
||||
},
|
||||
Refactor: {
|
||||
keywords: ["refactor"],
|
||||
},
|
||||
"Unit Tests": {
|
||||
keywords: ["unit test"],
|
||||
},
|
||||
"April Fools": {
|
||||
keywords: ["[april fools]"],
|
||||
},
|
||||
"Do Not Merge": {
|
||||
keywords: ["[dnm]", "[do not merge]"],
|
||||
},
|
||||
"GBP: No Update": {
|
||||
keywords: ["[no gbp]"],
|
||||
},
|
||||
"Test Merge Only": {
|
||||
keywords: ["[tm only]", "[test merge only]"],
|
||||
},
|
||||
};
|
||||
|
||||
// Changelog Labels
|
||||
//
|
||||
// Adds labels based on keywords in the changelog
|
||||
// TODO use the existing changelog parser
|
||||
export const changelog_labels = {
|
||||
'Fix': {
|
||||
default_text: 'fixed a few things',
|
||||
keywords: ['fix', 'fixes', 'bugfix'],
|
||||
},
|
||||
'Quality of Life': {
|
||||
default_text: 'made something easier to use',
|
||||
keywords: ['qol'],
|
||||
},
|
||||
'Sound': {
|
||||
default_text: 'added/modified/removed audio or sound effects',
|
||||
keywords: ['sound'],
|
||||
},
|
||||
'Feature': {
|
||||
default_text: 'Added new mechanics or gameplay changes',
|
||||
alt_default_text: 'Added more things',
|
||||
keywords: ['add', 'adds', 'rscadd'],
|
||||
},
|
||||
'Removal': {
|
||||
default_text: 'Removed old things',
|
||||
keywords: ['del', 'dels', 'rscdel'],
|
||||
},
|
||||
'Sprites': {
|
||||
default_text: 'added/modified/removed some icons or images',
|
||||
keywords: ['image'],
|
||||
},
|
||||
'Grammar and Formatting': {
|
||||
default_text: 'fixed a few typos',
|
||||
keywords: ['typo', 'spellcheck'],
|
||||
},
|
||||
'Balance': {
|
||||
default_text: 'rebalanced something',
|
||||
keywords: ['balance'],
|
||||
},
|
||||
'Code Improvement': {
|
||||
default_text: 'changed some code',
|
||||
keywords: ['code_imp', 'code'],
|
||||
},
|
||||
'Refactor': {
|
||||
default_text: 'refactored some code',
|
||||
keywords: ['refactor'],
|
||||
},
|
||||
'Config Update': {
|
||||
default_text: 'changed some config setting',
|
||||
keywords: ['config'],
|
||||
},
|
||||
'Administration': {
|
||||
default_text: 'messed with admin stuff',
|
||||
keywords: ['admin'],
|
||||
},
|
||||
}
|
||||
Fix: {
|
||||
default_text: "fixed a few things",
|
||||
keywords: ["fix", "fixes", "bugfix"],
|
||||
},
|
||||
"Quality of Life": {
|
||||
default_text: "made something easier to use",
|
||||
keywords: ["qol"],
|
||||
},
|
||||
Sound: {
|
||||
default_text: "added/modified/removed audio or sound effects",
|
||||
keywords: ["sound"],
|
||||
},
|
||||
Feature: {
|
||||
default_text: "Added new mechanics or gameplay changes",
|
||||
alt_default_text: "Added more things",
|
||||
keywords: ["add", "adds", "rscadd"],
|
||||
},
|
||||
Removal: {
|
||||
default_text: "Removed old things",
|
||||
keywords: ["del", "dels", "rscdel"],
|
||||
},
|
||||
Sprites: {
|
||||
default_text: "added/modified/removed some icons or images",
|
||||
keywords: ["image"],
|
||||
},
|
||||
"Grammar and Formatting": {
|
||||
default_text: "fixed a few typos",
|
||||
keywords: ["typo", "spellcheck"],
|
||||
},
|
||||
Balance: {
|
||||
default_text: "rebalanced something",
|
||||
keywords: ["balance"],
|
||||
},
|
||||
"Code Improvement": {
|
||||
default_text: "changed some code",
|
||||
keywords: ["code_imp", "code"],
|
||||
},
|
||||
Refactor: {
|
||||
default_text: "refactored some code",
|
||||
keywords: ["refactor"],
|
||||
},
|
||||
"Config Update": {
|
||||
default_text: "changed some config setting",
|
||||
keywords: ["config"],
|
||||
},
|
||||
Administration: {
|
||||
default_text: "messed with admin stuff",
|
||||
keywords: ["admin"],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user