Skip to content

Commit 6fae2d7

Browse files
author
Matthieu Gicquel
authored
feat(eslint-plugin)!: add multiple bug prevention rules (#110)
1 parent 83385d4 commit 6fae2d7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lerna.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"private": false,
88
"message": "chore(release): Publish",
99
"conventionalCommits": true,
10-
"allowBranch": "main"
10+
"allowBranch": "main",
11+
"createRelease": "github"
1112
}
1213
}
1314
}

packages/eslint-plugin/lib/configs/recommended.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@ export const recommendedConfig = defineConfig({
2424
],
2525
plugins: ["@bam.tech"],
2626
rules: {
27+
"no-var": "error",
28+
eqeqeq: "error",
29+
"no-constant-binary-expression": "error",
30+
"no-else-return": "error",
31+
"require-await": "error",
32+
"no-nested-ternary": "error",
2733
"@typescript-eslint/ban-ts-comment": "warn",
2834
"@typescript-eslint/explicit-function-return-type": "off",
2935
"@typescript-eslint/indent": "off",
3036
"@typescript-eslint/no-explicit-any": "error",
37+
"@typescript-eslint/no-non-null-assertion": "error",
38+
"typescript-eslint/no-shadow": "error",
3139
"no-console": ["error", { allow: ["warn", "error"] }],
3240
"no-return-await": "error",
3341
"array-callback-return": "error",

0 commit comments

Comments
 (0)