Skip to content

Commit aaf7114

Browse files
style(lint): update eslint config
1 parent 0d55c8b commit aaf7114

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
{
22
"name": "roblox-ts-project-template",
3-
"type": "module",
43
"version": "1.0.0",
5-
"packageManager": "pnpm@9.5.0",
64
"description": "A Roblox game made with React and Roblox-TS",
7-
"author": "",
8-
"license": "ISC",
95
"keywords": [],
6+
"license": "ISC",
7+
"author": "",
8+
"type": "module",
109
"main": "index.js",
1110
"scripts": {
12-
"build-prod": "npm run clean && NODE_ENV=production && npx rbxtsc --verbose && npm run darklua",
13-
"sync-prod": "rojo serve ./build.project.json",
1411
"build-dev": "NODE_ENV=development && npx rbxtsc",
15-
"watch-dev": "NODE_ENV=development && npx rbxtsc -w",
16-
"sync-dev": "rojo serve",
12+
"build-prod": "npm run clean && NODE_ENV=production && npx rbxtsc --verbose && npm run darklua",
1713
"clean": "npx rimraf out/ && npx rimraf dist",
14+
"commit": "commit",
1815
"darklua": "darklua process out dist --verbose",
1916
"eslint-config": "npx @eslint/config-inspector",
2017
"lint": "eslint --max-warnings 0 .",
21-
"upload-assets": "asphalt sync && eslint src/shared/assets.d.ts --fix",
2218
"prepare": "node .husky/install.js",
23-
"commit": "commit"
19+
"sync-dev": "rojo serve",
20+
"sync-prod": "rojo serve ./build.project.json",
21+
"upload-assets": "asphalt sync && eslint src/shared/assets.d.ts --fix",
22+
"watch-dev": "NODE_ENV=development && npx rbxtsc -w"
23+
},
24+
"lint-staged": {
25+
"*": "eslint --fix"
2426
},
2527
"dependencies": {
2628
"@flamework/components": "1.2.3",
@@ -73,13 +75,11 @@
7375
"roblox-ts": "2.3.0-dev-e6e7658",
7476
"typescript": "5.4.5"
7577
},
78+
"packageManager": "pnpm@9.5.0",
7679
"pnpm": {
7780
"patchedDependencies": {
7881
"roblox-ts@2.3.0-dev-e6e7658": "patches/roblox-ts@2.3.0-dev-e6e7658.patch",
7982
"rbxts-transform-env@2.2.0": "patches/rbxts-transform-env@2.2.0.patch"
8083
}
81-
},
82-
"lint-staged": {
83-
"*": "eslint --fix"
8484
}
8585
}

src/shared/network.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ interface ServerToClientEvents {
2727
};
2828
}
2929

30-
// eslint-disable-next-line ts/no-empty-interface -- This is a placeholder for future functions.
31-
interface ClientToServerFunctions {}
30+
type ClientToServerFunctions = object;
3231

3332
export const GlobalEvents = Networking.createEvent<ClientToServerEvents, ServerToClientEvents>();
3433
export const GlobalFunctions = Networking.createFunction<

0 commit comments

Comments
 (0)