Skip to content

Commit 538770a

Browse files
committed
chore(deps-dev): update @marcalexiei/eslint-config
1 parent ff37ed9 commit 538770a

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"devDependencies": {
6363
"@changesets/changelog-github": "0.5.1",
6464
"@changesets/cli": "2.29.5",
65-
"@marcalexiei/eslint-config": "2.0.3",
65+
"@marcalexiei/eslint-config": "2.1.1",
6666
"@marcalexiei/prettier-config": "1.1.1",
6767
"@types/json-schema": "7.0.15",
6868
"@types/node": "24.0.13",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rules/consistent-syntax.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ const syntaxRule: Rule.RuleModule = {
6767
// eslint-disable-next-line @typescript-eslint/naming-convention
6868
ImportDeclaration: (node): void => {
6969
/** @todo might change selector to something like ImportDeclaration[source.value="react"] */
70-
if (node.source.value !== 'react') return;
70+
if (node.source.value !== 'react') {
71+
return;
72+
}
7173

7274
const { specifiers } = node;
7375

@@ -126,7 +128,9 @@ const syntaxRule: Rule.RuleModule = {
126128
// eslint-disable-next-line @typescript-eslint/naming-convention
127129
'Program:exit': (): void => {
128130
/** Check if there is at least one invalid import */
129-
if (!reactInvalidImports.length) return;
131+
if (!reactInvalidImports.length) {
132+
return;
133+
}
130134

131135
/** All additional imports can be removed */
132136
for (const [index, reactImportNode] of reactInvalidImports.entries()) {

0 commit comments

Comments
 (0)