Skip to content

Commit

Permalink
Merge pull request #5 from dbos-inc/chuck/rules2
Browse files Browse the repository at this point in the history
Rule defaults (recommended)
  • Loading branch information
chuck-dbos authored Jan 19, 2024
2 parents 4ce11ab + 0d98e39 commit 1f0a97e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dbos-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const baseConfig =
},
rules: {
"no-eval": "error",
"@typescript-eslint/no-implied-eval": "error",
"no-console": "error",
"security/detect-unsafe-regex": "error",
"no-secrets/no-secrets": "error",
Expand All @@ -37,7 +38,13 @@ const recConfig =
rules: {
...baseConfig.rules,
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/semi": ["error"],
"semi": ["error"],
"no-empty": "off",
"no-constant-condition": "off",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-floating-promises": "error",
"eqeqeq": ["error", "always"],
"@typescript-eslint/no-for-in-array": "error",

"@typescript-eslint/no-unused-vars": [
"error",
Expand All @@ -55,6 +62,7 @@ const extConfig =
],
rules: {
...recConfig.rules,
"@typescript-eslint/no-shadow": "error",
},
}

Expand Down

0 comments on commit 1f0a97e

Please sign in to comment.