mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-05-31 13:56:13 -07:00
- Add storage-pull strategy: rclone-based sync from remote storage with overlay and clean modes, URI parsing (storage://remote:bucket/path), transfer parallelism, and automatic rclone availability checking - Add SyncStateManager: persistent state load/save with configurable paths, workspace hash calculation via SHA-256 of key project files, and drift detection for external modification awareness - Add action.yml inputs: syncStrategy, syncInputRef, syncStorageRemote, syncRevertAfter, syncStatePath with sensible defaults - Wire sync into Input (5 getters), BuildParameters (5 fields), index.ts (local build path), and RemoteClient (orchestrator path) with post-job overlay revert when syncRevertAfter is true - Add 42 unit tests covering all strategies, URI parsing, state management, hash calculation, drift detection, error handling, and edge cases (missing rclone, invalid URIs, absent state, empty diffs) - Add root:true to eslintrc to prevent plugin resolution conflicts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
92 lines
2.4 KiB
JSON
92 lines
2.4 KiB
JSON
{
|
|
"root": true,
|
|
"plugins": ["jest", "@typescript-eslint", "prettier", "unicorn"],
|
|
"extends": ["plugin:unicorn/recommended", "plugin:github/recommended", "plugin:prettier/recommended"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020,
|
|
"sourceType": "module",
|
|
"extraFileExtensions": [".mjs"],
|
|
"ecmaFeatures": {
|
|
"impliedStrict": true
|
|
},
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"env": {
|
|
"node": true,
|
|
"es6": true,
|
|
"jest/globals": true,
|
|
"es2020": true
|
|
},
|
|
"rules": {
|
|
// Error out for code formatting errors
|
|
"prettier/prettier": "error",
|
|
// Namespaces or sometimes needed
|
|
"import/no-namespace": "off",
|
|
// Properly format comments
|
|
"spaced-comment": ["error", "always"],
|
|
"lines-around-comment": [
|
|
"error",
|
|
{
|
|
"beforeBlockComment": true,
|
|
"beforeLineComment": true,
|
|
"allowBlockStart": true,
|
|
"allowObjectStart": true,
|
|
"allowArrayStart": true,
|
|
"allowClassStart": true,
|
|
"ignorePattern": "pragma|ts-ignore"
|
|
}
|
|
],
|
|
// Mandatory spacing
|
|
"padding-line-between-statements": [
|
|
"error",
|
|
{
|
|
"blankLine": "always",
|
|
"prev": "*",
|
|
"next": "return"
|
|
},
|
|
{
|
|
"blankLine": "always",
|
|
"prev": "directive",
|
|
"next": "*"
|
|
},
|
|
{
|
|
"blankLine": "any",
|
|
"prev": "directive",
|
|
"next": "directive"
|
|
}
|
|
],
|
|
// Enforce camelCase
|
|
"camelcase": "error",
|
|
// Allow forOfStatements
|
|
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
|
|
// Continue is viable in forOf loops in generators
|
|
"no-continue": "off",
|
|
// From experience, named exports are almost always desired. I got tired of this rule
|
|
"import/prefer-default-export": "off",
|
|
// Unused vars are useful to keep method signatures consistent and documented
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
// For this project only use kebab-case
|
|
"unicorn/filename-case": [
|
|
"error",
|
|
{
|
|
"cases": {
|
|
"kebabCase": true
|
|
}
|
|
}
|
|
],
|
|
// Allow Array.from(set) mitigate TS2569 which would require '--downlevelIteration'
|
|
"unicorn/prefer-spread": "off",
|
|
// Temp disable to prevent mixing changes with other PRs
|
|
"i18n-text/no-en": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["jest.setup.js"],
|
|
"rules": {
|
|
"import/no-commonjs": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|