Skip to content

Commit 137f5d4

Browse files
committed
feat: add custom eslint rules
adds rule to disallow optional chaining in both sides of a comparison operator
1 parent 1883e86 commit 137f5d4

3 files changed

Lines changed: 2 additions & 0 deletions

File tree

bun.lockb

807 Bytes
Binary file not shown.

eslint/core.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = defineConfig({
77
'plugin:import/recommended',
88
'prettier',
99
'plugin:no-template-curly-in-string-fix/recommended',
10+
'plugin:@timobechtel/rules/all',
1011
require.resolve('./rules/base.cjs'),
1112
require.resolve('./rules/import.cjs'),
1213
require.resolve('./rules/unicorn.cjs'),

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"dependencies": {
2525
"@semantic-release/changelog": "^6.0.3",
2626
"@semantic-release/git": "^10.0.1",
27+
"@timobechtel/eslint-plugin-rules": "^1.0.0",
2728
"@typescript-eslint/eslint-plugin": "^8.19.1",
2829
"@typescript-eslint/parser": "^8.19.1",
2930
"eslint-config-prettier": "^9.1.0",

0 commit comments

Comments
 (0)