-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tgui: replace prettierx with prettier (#14722) Co-authored-by: jlsnow301 <[email protected]> * Update Cargo.jsx * Update SettingsPanel.jsx * Update ClanMenu.jsx * Replaces babel with swc (#14720) * tgui: sort imports (#14723) Co-authored-by: jlsnow301 <[email protected]> * Update MechStatPane.tsx * hmm * Fix CI deprecation warns (#14724) * Update index.tsx * mhm * mhm --------- Co-authored-by: vvvv-vvvv <[email protected]> Co-authored-by: jlsnow301 <[email protected]> Co-authored-by: Jeremiah <[email protected]>
- Loading branch information
1 parent
cb18dac
commit 066d07d
Showing
248 changed files
with
2,911 additions
and
3,975 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"eslint.nodePath": "./tgui/.yarn/sdks", | ||
"eslint.workingDirectories": ["./tgui"], | ||
"prettier.prettierPath": "./tgui/.yarn/sdks/prettier/index.cjs", | ||
"typescript.tsdk": "./tgui/.yarn/sdks/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"search.exclude": { | ||
"**/.yarn": true, | ||
"**/.pnp.*": true | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"files.eol": "\n", | ||
"gitlens.advanced.blame.customArguments": ["-w"], | ||
"tgstationTestExplorer.project.resultsType": "json", | ||
"[javascript]": { | ||
"editor.rulers": [80], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"[javascriptreact]": { | ||
"editor.rulers": [80], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"[typescript]": { | ||
"editor.rulers": [80], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"[typescriptreact]": { | ||
"editor.rulers": [80], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"[scss]": { | ||
"editor.rulers": [80], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"tgstationTestExplorer.project.DMEName": "tgmc.dme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1 @@ | ||
arrowParens: always | ||
breakLongMethodChains: true | ||
endOfLine: lf | ||
importFormatting: oneline | ||
jsxBracketSameLine: true | ||
jsxSingleQuote: false | ||
offsetTernaryExpressions: true | ||
printWidth: 80 | ||
proseWrap: preserve | ||
quoteProps: preserve | ||
semi: true | ||
singleQuote: true | ||
tabWidth: 2 | ||
trailingComma: es5 | ||
useTabs: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"loose": true, | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": true | ||
}, | ||
"transform": { | ||
"react": { | ||
"runtime": "automatic" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env node | ||
|
||
const {existsSync} = require(`fs`); | ||
const {createRequire} = require(`module`); | ||
const {resolve} = require(`path`); | ||
|
||
const relPnpApiPath = "../../../../.pnp.cjs"; | ||
|
||
const absPnpApiPath = resolve(__dirname, relPnpApiPath); | ||
const absRequire = createRequire(absPnpApiPath); | ||
|
||
if (existsSync(absPnpApiPath)) { | ||
if (!process.versions.pnp) { | ||
// Setup the environment to be able to require prettier/bin/prettier.cjs | ||
require(absPnpApiPath).setup(); | ||
} | ||
} | ||
|
||
// Defer to the real prettier/bin/prettier.cjs your application uses | ||
module.exports = absRequire(`prettier/bin/prettier.cjs`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "prettier", | ||
"version": "0.19.0-sdk", | ||
"main": "./index.js", | ||
"type": "commonjs" | ||
"version": "3.1.0-sdk", | ||
"main": "./index.cjs", | ||
"type": "commonjs", | ||
"bin": "./bin/prettier.cjs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,48 +12,40 @@ | |
"tgui:build": "BROWSERSLIST_IGNORE_OLD_DATA=true webpack", | ||
"tgui:dev": "node --experimental-modules packages/tgui-dev-server/index.js", | ||
"tgui:lint": "eslint packages --ext .js,.cjs,.ts,.tsx", | ||
"tgui:prettier": "prettierx --check .", | ||
"tgui:prettier": "prettier --check .", | ||
"tgui:sonar": "eslint packages --ext .js,.cjs,.ts,.tsx -c .eslintrc-sonar.yml", | ||
"tgui:test": "jest --watch", | ||
"tgui:test-simple": "CI=true jest --color", | ||
"tgui:test-ci": "CI=true jest --color --collect-coverage", | ||
"tgui:tsc": "tsc" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "^7.23.3", | ||
"@babel/eslint-parser": "^7.23.3", | ||
"@babel/plugin-transform-class-properties": "^7.23.3", | ||
"@babel/plugin-transform-jscript": "^7.23.3", | ||
"@babel/preset-env": "^7.23.3", | ||
"@babel/preset-react": "^7.23.3", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@swc/core": "^1.3.101", | ||
"@swc/jest": "^0.2.29", | ||
"@types/jest": "^29.5.10", | ||
"@types/jsdom": "^21.1.6", | ||
"@types/node": "^14.x", | ||
"@types/webpack": "^5.28.5", | ||
"@types/webpack-env": "^1.18.4", | ||
"@typescript-eslint/parser": "^5.62.0", | ||
"babel-jest": "^29.7.0", | ||
"babel-loader": "^8.3.0", | ||
"babel-plugin-transform-remove-console": "^6.9.4", | ||
"common": "workspace:*", | ||
"@typescript-eslint/parser": "^6.14.0", | ||
"css-loader": "^6.8.1", | ||
"esbuild-loader": "^4.0.2", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-radar": "^0.2.1", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-react": "^7.33.2", | ||
"eslint-plugin-unused-imports": "^1.1.5", | ||
"eslint-plugin-simple-import-sort": "^12.1.1", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
"file-loader": "^6.2.0", | ||
"jest": "^29.7.0", | ||
"jest-circus": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"jsdom": "^22.1.0", | ||
"mini-css-extract-plugin": "^2.7.6", | ||
"prettier": "npm:[email protected].0", | ||
"prettier": "^3.1.0", | ||
"sass": "^1.69.5", | ||
"sass-loader": "^13.3.2", | ||
"style-loader": "^3.3.3", | ||
"swc-loader": "^0.2.3", | ||
"typescript": "^4.9.4", | ||
"url-loader": "^4.1.1", | ||
"webpack": "^5.89.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.