Skip to content

Commit

Permalink
Linting updates, satisfy ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
lexisother committed Jan 30, 2024
1 parent 0e5b343 commit 8748631
Show file tree
Hide file tree
Showing 13 changed files with 109 additions and 121 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.pnpm-store/
dist/
src/node-module-imports/
common/vendor-libs/**/*.js*
packages/common/src/vendor-libs
ultimate-crosscode-typedefs/
4 changes: 4 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ overrides:
rules:
node/no-missing-import: off

- files: '**/*.d.ts'
rules:
no-var: off

- files: '**/src/**/*.ts'
extends: eslint-config-dmitmel/rules/typescript/with-type-checking
parserOptions:
Expand Down
20 changes: 10 additions & 10 deletions main.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<head>
<style>
body {
background-color: #000;
color: #fff;
}
body {
background-color: #000;
color: #fff;
}
</style>
<meta charset="utf-8"/>
<meta charset="utf-8" />
<title>CrossCode (CCLoader3)</title>
<link href="main.css" rel="stylesheet"/>
<link href="main.css" rel="stylesheet" />
<script src="dist/core.js" type="module"></script>
</head>
<body></body>
</head>
<body></body>
</html>
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"engines": {
"node": ">=11.0.0"
"node": ">=18.0.0"
},
"dependencies": {
"jszip": "=3.10.1",
Expand All @@ -13,12 +13,12 @@
"@types/jquery": "^1.10.31",
"@types/node": ">=11.9",
"@types/semver": "6.2.x || 6.3.x",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"archiver": "^5.3.1",
"esbuild": "^0.20.0",
"esbuild-copy-static-files": "^0.1.0",
"eslint": "^8.1.0",
"eslint": "^8.56.0",
"eslint-config-dmitmel": "dmitmel/eslint-config-dmitmel",
"eslint-plugin-node": "^11.1.0",
"prettier": "^2.8.8",
Expand All @@ -29,6 +29,7 @@
"scripts": {
"build": "node build.mjs",
"lint": "eslint . --ext .js,.ts --ignore-path .eslintignore",
"check-fmt": "prettier --check '**/*.{js,ts,json,css,scss,html}'"
"check-fmt": "prettier --check '**/*.{js,ts,json,css,html}'",
"format": "prettier --write **/*.{js,ts,json,css,scss,html}"
}
}
}
3 changes: 3 additions & 0 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@ccloader3/common",
"private": true,
"engines": {
"node": ">=18.0.0"
},
"exports": {
"./*": "./src/*.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.json"
}
3 changes: 3 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@ccloader3/core",
"private": true,
"engines": {
"node": ">=18.0.0"
},
"exports": {
"./*": "./src/*.ts"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
Dependency,
LegacyPluginClass,
LoadingStage,
Mod as ModPublic,
ModID,
Mod as ModPublic,
PluginClass,
} from 'ultimate-crosscode-typedefs/modloader/mod';

Expand All @@ -17,7 +17,7 @@ export class Mod implements ModPublic {
public readonly version: semver.SemVer | null = null;
public readonly dependencies: ReadonlyMap<ModID, Dependency>;
public readonly assetsDirectory: string;
public assets: Set<string> = new Set();
public assets = new Set<string>();
public pluginClassInstance: PluginClass | null = null;

public constructor(
Expand Down
6 changes: 2 additions & 4 deletions packages/runtime/ccmod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
"version": "3.3.0-alpha",
"description": "CCLoader's graphical user interface and standard library implementation",
"plugin": "main.js",
"assets": [
"data/lang/sc/gui.en_US.json.patch"
],
"assets": ["data/lang/sc/gui.en_US.json.patch"],
"dependencies": {
"crosscode": "^1.1.0 || 1.0.2",
"ccloader": "^3.3.1-alpha"
}
}
}
3 changes: 3 additions & 0 deletions packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@ccloader3/runtime",
"private": true,
"engines": {
"node": ">=18.0.0"
},
"exports": {
"./*": "./src/*.ts"
},
Expand Down
8 changes: 1 addition & 7 deletions packages/runtime/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": [
"src",
"node_modules/ultimate-crosscode-typedefs/crosscode-ccloader-all.d.ts"
],
"compilerOptions": {
"moduleResolution": "node"
}
"include": ["src", "node_modules/ultimate-crosscode-typedefs/crosscode-ccloader-all.d.ts"]
}
Loading

0 comments on commit 8748631

Please sign in to comment.