Skip to content

Commit 1a604eb

Browse files
committed
add the indent rule for typescript
1 parent 04cea7a commit 1a604eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/eslint-config-algolia/rules/typescript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ module.exports = {
145145
],
146146
'@stylistic/comma-spacing': ['error'],
147147
'@stylistic/func-call-spacing': ['error'],
148+
'@stylistic/indent': ['error', 2],
148149
'@typescript-eslint/no-confusing-non-null-assertion': ['error'],
149150
'@typescript-eslint/no-extra-non-null-assertion': ['error'],
150151
'@typescript-eslint/no-non-null-asserted-optional-chain': ['error'],

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2739,12 +2739,12 @@ __metadata:
27392739

27402740
"eslint-config-algolia@file:../eslint-config-algolia::locator=test%40workspace%3Apackages%2Ftest":
27412741
version: 23.1.3
2742-
resolution: "eslint-config-algolia@file:../eslint-config-algolia#../eslint-config-algolia::hash=dc2578&locator=test%40workspace%3Apackages%2Ftest"
2742+
resolution: "eslint-config-algolia@file:../eslint-config-algolia#../eslint-config-algolia::hash=5f7da5&locator=test%40workspace%3Apackages%2Ftest"
27432743
peerDependencies:
27442744
"@stylistic/eslint-plugin": ^2.6.4
27452745
eslint: ^5.16.0 || ^6.8.0 || ^7.2.0 || ^8.0.0
27462746
prettier: ^3.0.0
2747-
checksum: 10c0/48bb665332c4b5f2cf26a0359af0ccb5d4f1272bada79d7a42e62e86fdd0fc4460f126f3ab5ccff1e3ad0d0e191e0a4d9dc318f9a838ab13324f4315f1ec48a4
2747+
checksum: 10c0/87404da7a1c0e4fbb1bd96d2645b6b86d0782778289292c094d809499175e93ebc642fbd49da704ed52191d6248af5b800812b95b9a26f833f9be6301981f418
27482748
languageName: node
27492749
linkType: hard
27502750

0 commit comments

Comments
 (0)