eslint: add github/array-foreach rule

This commit is contained in:
undefined committed 2023-10-20 20:59:48 +08:00
1 parent 9901ffa62d
commit 335a272db4
21 files changed
+59 -51

No files matched your search

+3
View File
@@ -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
+1
View File
@@ -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",