mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
eslint: add github/array-foreach rule
This commit is contained in:
21 files changed
+59
-51
No files matched your search
@@ -12,6 +12,7 @@ plugins:
|
||||
- '@typescript-eslint'
|
||||
- simple-import-sort
|
||||
- eslint-plugin-import
|
||||
- eslint-plugin-github
|
||||
rules:
|
||||
'@typescript-eslint/no-shadow': 1
|
||||
|
||||
@@ -145,6 +146,8 @@ rules:
|
||||
message: Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.
|
||||
- selector: WithStatement
|
||||
message: '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.'
|
||||
|
||||
github/array-foreach: 1
|
||||
|
||||
simple-import-sort/imports:
|
||||
- warn
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"@typescript-eslint/parser": "^6.8.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-config-airbnb-typescript": "^17.1.0",
|
||||
"eslint-plugin-github": "^4.10.1",
|
||||
"eslint-plugin-import": "2.28.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.7.1",
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
|
||||
Reference in new issue
Block a user