Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 0 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,3 @@ indent_size = 4
[*.vue]
indent_style = tab
indent_size = 4

[.prettierrc]
indent_style = tab
indent_size = 4

[.eslintrc.json]
indent_style = tab
indent_size = 4

[deno.json]
indent_style = space
indent_size = 2
36 changes: 0 additions & 36 deletions .eslintrc.json

This file was deleted.

22 changes: 16 additions & 6 deletions .github/workflows/lint-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ jobs:
name: ESLint Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
- name: Checkout repository
uses: actions/checkout@v4

- name: Install modules
run: |
yarn add -D eslint @eslint/js globals typescript typescript-eslint eslint-plugin-vue vue-eslint-parser
yarn global add eslint
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run ESLint
run: yarn exec eslint card/ character/ extension/ game/game.js game/entry.js mode/ noname/ noname.js noname-compatible.js service-worker.js
run: pnpm lint
42 changes: 13 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,48 +1,32 @@
audio/*.TXT
image/*.TXT
!extension/boss
!extension/cardpile
!extension/coin
!extension/wuxing
!extension/3D精选
!extension/杀海拾遗
!extension/欢乐卡牌
!extension/玩点论杀
!extension/英雄杀
!node_modules/@types
!node_modules/noname-typings
!node_modules/options
!node_modules/ultron
!node_modules/undici-types
!node_modules/ws
extension/
!extension/boss/
!extension/cardpile/
!extension/coin/
!extension/3D精选/
!extension/杀海拾遗/
!extension/欢乐卡牌/
!extension/玩点论杀/
!extension/英雄杀/
._*
.DS_Store
.DS_Store?
.eslintcache
.idea
.Spotlight-V100
.Trashes
.vscode
app
app.html
dist
ehthumbs.db
extension
Home
jsconfig.json
localStorage.json
main.js
!mode/**/src/main.js
/main.js
node_modules
noname.ico
package-lock.json
package.json
Thumbs.db
bun.lockb
deno.lock
pnpm-lock.yaml
game/*.zip

downloadExtension.html
update.html
update.js
*.txt
*.pdf
game/*.zip
2 changes: 0 additions & 2 deletions .mise.toml

This file was deleted.

12 changes: 0 additions & 12 deletions .prettierrc

This file was deleted.

37 changes: 34 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
# 无名杀

## 安装与运行

### 环境要求

- Node.js >= 18
- [pnpm](https://pnpm.io/) >= 8
- Webview 内核 >= 91

### 克隆项目

```bash
git clone https://github.com/libnoname/noname
cd noname
```

### 安装依赖

```bash
pnpm install
```

### 启动

```bash
pnpm start
```

---

noname-server.exe 的源码见以下仓库:

https://github.com/nonameShijian/noname-server
<https://github.com/nonameShijian/noname-server>

---

Expand All @@ -16,9 +47,9 @@ https://github.com/nonameShijian/noname-server

客户端下载戳这里:

安卓: https://github.com/nonameShijian/noname-shijian-android/releases/tag/v1.6.8
安卓: <https://github.com/nonameShijian/noname-shijian-android/releases/tag/v1.6.8>

PC: https://github.com/nonameShijian/noname/releases/tag/v1.75
PC: <https://github.com/nonameShijian/noname/releases/tag/v1.75>

网页端推荐使用 Chrome 系内核浏览器游玩,暂不支持 Firefox 浏览器

Expand Down
1 change: 0 additions & 1 deletion character/sixiang/skill.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { initCustomFormatter } from "../../game/vue.esm-browser.js";
import { lib, game, ui, get, ai, _status } from "../../noname.js";

/** @type { importCharacterConfig['skill'] } */
Expand Down
11 changes: 0 additions & 11 deletions deno.json

This file was deleted.

78 changes: 0 additions & 78 deletions eslint.config.mjs

This file was deleted.

69 changes: 69 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import js from "@eslint/js";
import { defineConfig, globalIgnores } from "eslint/config";
import ts from "typescript-eslint";
import vue from "eslint-plugin-vue";
import vueParser from "vue-eslint-parser";
import globals from "globals";

export default defineConfig(globalIgnores(["dist", "node_modules"]), js.configs.recommended, ts.configs.recommended, vue.configs["flat/essential"], {
files: ["**/*.js", "**/*.mts", "**/*.cts", "**/*.ts", "**/*.vue"],
rules: {
"@typescript-eslint/no-require-imports": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-unused-expressions": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unsafe-function-type": 0,
"vue/multi-word-component-names": 0,
"no-class-assign": 0,
"no-console": 0,
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": false,
"ts-nocheck": false,
},
],
"no-constant-condition": [
"error",
{
checkLoops: false,
},
],
"no-irregular-whitespace": [
"error",
{
skipStrings: true,
skipTemplates: true,
},
],
"prefer-const": 0,
"no-redeclare": 0,
"no-undef": 0,
"no-empty": [
"error",
{
allowEmptyCatch: true,
},
],
"no-unused-vars": 0,
"require-yield": 0,
"no-fallthrough": ["error", { commentPattern: "\\[falls[\\s\\w]*through\\]" }],
// curly: "error",
},
languageOptions: {
ecmaVersion: 13,
sourceType: "module",
parser: vueParser,
parserOptions: {
parser: ts.parser,
},
globals: {
...globals.browser,
...globals.es2015,
...globals.node,
...globals.serviceworker,
...globals.worker,
},
},
});
Loading