代码拉取完成,页面将自动刷新
root: true
extends:
- '@hydrooj/eslint-config'
ignorePatterns:
- public/**/*.js
- packages/ui-default
overrides:
- files:
- '**/{public,frontend}/**/*.{ts,tsx,page.js}'
rules:
'@typescript-eslint/indent':
- warn
- 2
'@typescript-eslint/no-invalid-this': 0
env:
browser: true
es6: true
jquery: true
globals:
UiContext: true
UserContext: true
externalModules: true
LOCALES: true
LANGS: true
rules:
'@typescript-eslint/no-invalid-this': 1
simple-import-sort/imports:
- warn
- groups:
- ["^\\u0000"]
-
- "^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)"
- "^(?!@?hydrooj)(@?\\w.+)"
- "^@?hydrooj"
- "^"
- "^\\."
settings:
import/parsers:
'@typescript-eslint/parser':
- .ts
- .js
- .jsx
import/resolver:
typescript:
alwaysTryTypes: true
parserOptions:
sourceType: module
# project:
# - './tsconfig.json'
# - './packages/**/tsconfig.json'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。