1 Star 1 Fork 1

冰凌呀 / Hydro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.yaml 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
undefined 提交于 2023-02-23 14:21 . core: fix #519
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'
1
https://gitee.com/bingling_ice-cream/Hydro.git
git@gitee.com:bingling_ice-cream/Hydro.git
bingling_ice-cream
Hydro
Hydro
master

搜索帮助