Skip to content

Commit 60a16fe

Browse files
committed
🔖 v0.0.24
1 parent 66e8834 commit 60a16fe

File tree

5 files changed

+57
-41
lines changed

5 files changed

+57
-41
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@yboyer/eslint-config-backend-node",
3-
"version": "0.0.23",
3+
"version": "0.0.24",
44
"description": "",
55
"homepage": "https://github.com/yboyer/eslint-config-backend-node",
66
"repository": {
@@ -22,8 +22,7 @@
2222
},
2323
"keywords": [],
2424
"devDependencies": {
25-
"@tsconfig/node20": "^20.1.5",
26-
"@types/eslint": "^9.6.1",
25+
"@tsconfig/node22": "^22.0.2",
2726
"@types/jest": "^29.5.14",
2827
"@types/lodash": "^4.17.17",
2928
"@types/node": "^22.13.8",

test/__snapshots__/rules.test.ts.snap

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ exports[`ESLint rules should match defined rules for js: Applied rules 1`] = `
7979
"before": false,
8080
},
8181
],
82+
"@typescript-eslint/consistent-type-imports": [
83+
"error",
84+
],
8285
"@typescript-eslint/default-param-last": [
8386
"error",
8487
],
@@ -180,23 +183,12 @@ exports[`ESLint rules should match defined rules for js: Applied rules 1`] = `
180183
{
181184
"format": [
182185
"camelCase",
183-
"PascalCase",
184-
"UPPER_CASE",
185-
],
186-
"selector": "variable",
187-
},
188-
{
189-
"format": [
190-
"camelCase",
191-
"PascalCase",
192186
],
193-
"selector": "function",
194-
},
195-
{
196-
"format": [
197-
"PascalCase",
187+
"leadingUnderscore": "allow",
188+
"modifiers": [
189+
"private",
198190
],
199-
"selector": "typeLike",
191+
"selector": "memberLike",
200192
},
201193
],
202194
"@typescript-eslint/no-array-constructor": [
@@ -238,6 +230,9 @@ exports[`ESLint rules should match defined rules for js: Applied rules 1`] = `
238230
"@typescript-eslint/no-extra-semi": [
239231
"off",
240232
],
233+
"@typescript-eslint/no-floating-promises": [
234+
"error",
235+
],
241236
"@typescript-eslint/no-implied-eval": [
242237
"error",
243238
],
@@ -755,6 +750,7 @@ exports[`ESLint rules should match defined rules for js: Applied rules 1`] = `
755750
"error",
756751
{
757752
"allowUnsafeDynamicCyclicDependency": false,
753+
"disableScc": false,
758754
"ignoreExternal": false,
759755
"maxDepth": "",
760756
},
@@ -902,6 +898,7 @@ exports[`ESLint rules should match defined rules for js: Applied rules 1`] = `
902898
"internal",
903899
],
904900
],
901+
"named": false,
905902
"warnOnUnassignedImports": false,
906903
},
907904
],
@@ -1925,6 +1922,9 @@ exports[`ESLint rules should match defined rules for js: Applied rules 1`] = `
19251922
],
19261923
"no-void": [
19271924
"error",
1925+
{
1926+
"allowAsStatement": true,
1927+
},
19281928
],
19291929
"no-warning-comments": [
19301930
"off",
@@ -2551,6 +2551,8 @@ exports[`ESLint rules should match defined rules for js: Applied rules 1`] = `
25512551
".tsx",
25522552
".js",
25532553
".jsx",
2554+
".mjs",
2555+
".cjs",
25542556
],
25552557
"import/external-module-folders": [
25562558
"node_modules",
@@ -2577,6 +2579,8 @@ exports[`ESLint rules should match defined rules for js: Applied rules 1`] = `
25772579
".tsx",
25782580
".js",
25792581
".jsx",
2582+
".mjs",
2583+
".cjs",
25802584
],
25812585
},
25822586
},
@@ -2604,7 +2608,6 @@ exports[`ESLint rules should match defined rules for js: Ignored rules 1`] = `
26042608
"@typescript-eslint/consistent-type-assertions",
26052609
"@typescript-eslint/consistent-type-definitions",
26062610
"@typescript-eslint/consistent-type-exports",
2607-
"@typescript-eslint/consistent-type-imports",
26082611
"@typescript-eslint/explicit-function-return-type",
26092612
"@typescript-eslint/explicit-member-accessibility",
26102613
"@typescript-eslint/explicit-module-boundary-types",
@@ -2620,7 +2623,6 @@ exports[`ESLint rules should match defined rules for js: Ignored rules 1`] = `
26202623
"@typescript-eslint/no-dynamic-delete",
26212624
"@typescript-eslint/no-empty-interface",
26222625
"@typescript-eslint/no-extraneous-class",
2623-
"@typescript-eslint/no-floating-promises",
26242626
"@typescript-eslint/no-for-in-array",
26252627
"@typescript-eslint/no-import-type-side-effects",
26262628
"@typescript-eslint/no-inferrable-types",
@@ -2693,6 +2695,14 @@ exports[`ESLint rules should match defined rules for js: Ignored rules 1`] = `
26932695
"jest/no-restricted-matchers",
26942696
"jest/no-test-return-statement",
26952697
"jest/no-untyped-mock-factory",
2698+
"jest/padding-around-after-all-blocks",
2699+
"jest/padding-around-after-each-blocks",
2700+
"jest/padding-around-all",
2701+
"jest/padding-around-before-all-blocks",
2702+
"jest/padding-around-before-each-blocks",
2703+
"jest/padding-around-describe-blocks",
2704+
"jest/padding-around-expect-groups",
2705+
"jest/padding-around-test-blocks",
26962706
"jest/prefer-called-with",
26972707
"jest/prefer-comparison-matcher",
26982708
"jest/prefer-each",

test/rules.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { rules as tsRules } from '@typescript-eslint/eslint-plugin'
33
import { ESLint, Linter } from 'eslint'
44
// @ts-expect-error - ok
55
import { rules as importRules } from 'eslint-plugin-import'
6-
// @ts-expect-error - ok
76
import { rules as jestRules } from 'eslint-plugin-jest'
87
import _ from 'lodash'
98

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"extends": "@tsconfig/node20/tsconfig.json",
2+
"extends": "@tsconfig/node22/tsconfig.json",
33
"compilerOptions": {
44
"noEmit": true,
5+
"lib": ["es2023", "ESNext.Array", "ESNext.Collection"],
6+
57
},
68
"include": ["."],
79
"exclude": ["node_modules", "coverage"]

0 commit comments

Comments
 (0)