eslint-config-decent 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -604,14 +604,6 @@ const base$1 = {
604
604
  "@typescript-eslint/no-empty-interface": "error",
605
605
  "@typescript-eslint/no-extra-semi": "error",
606
606
  "@typescript-eslint/no-shadow": "error",
607
- "@typescript-eslint/no-use-before-define": [
608
- "error",
609
- {
610
- functions: true,
611
- classes: true,
612
- variables: true
613
- }
614
- ],
615
607
  "@typescript-eslint/parameter-properties": [
616
608
  "error",
617
609
  {
@@ -620,7 +612,8 @@ const base$1 = {
620
612
  ],
621
613
  "@typescript-eslint/restrict-template-expressions": ["error", { allowNumber: true }],
622
614
  "@typescript-eslint/return-await": "error",
623
- "@typescript-eslint/sort-type-constituents": "error"
615
+ "@typescript-eslint/sort-type-constituents": "error",
616
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "off"
624
617
  }
625
618
  };
626
619
  const configs$1 = {
@@ -654,7 +647,7 @@ function defaultConfig(options) {
654
647
  parserOptions: {
655
648
  // @ts-expect-error - This is a valid option
656
649
  projectService: {
657
- allowedDefaultProject: ["./*.js", "./*.cjs", "./*.mjs", "./tests/**/*.ts", "./tests/**/*.js", "./tests/**/*.cjs", "./tests/**/*.mjs"],
650
+ allowedDefaultProject: ["./*.{js,cjs,mjs}", "./tests/**/*.{ts,js,cjs,mjs}"],
658
651
  defaultProject: "tsconfig.json"
659
652
  },
660
653
  tsconfigRootDir: undefined,
package/dist/index.mjs CHANGED
@@ -586,14 +586,6 @@ const base$1 = {
586
586
  "@typescript-eslint/no-empty-interface": "error",
587
587
  "@typescript-eslint/no-extra-semi": "error",
588
588
  "@typescript-eslint/no-shadow": "error",
589
- "@typescript-eslint/no-use-before-define": [
590
- "error",
591
- {
592
- functions: true,
593
- classes: true,
594
- variables: true
595
- }
596
- ],
597
589
  "@typescript-eslint/parameter-properties": [
598
590
  "error",
599
591
  {
@@ -602,7 +594,8 @@ const base$1 = {
602
594
  ],
603
595
  "@typescript-eslint/restrict-template-expressions": ["error", { allowNumber: true }],
604
596
  "@typescript-eslint/return-await": "error",
605
- "@typescript-eslint/sort-type-constituents": "error"
597
+ "@typescript-eslint/sort-type-constituents": "error",
598
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "off"
606
599
  }
607
600
  };
608
601
  const configs$1 = {
@@ -636,7 +629,7 @@ function defaultConfig(options) {
636
629
  parserOptions: {
637
630
  // @ts-expect-error - This is a valid option
638
631
  projectService: {
639
- allowedDefaultProject: ["./*.js", "./*.cjs", "./*.mjs", "./tests/**/*.ts", "./tests/**/*.js", "./tests/**/*.cjs", "./tests/**/*.mjs"],
632
+ allowedDefaultProject: ["./*.{js,cjs,mjs}", "./tests/**/*.{ts,js,cjs,mjs}"],
640
633
  defaultProject: "tsconfig.json"
641
634
  },
642
635
  tsconfigRootDir: import.meta.dirname,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -72,33 +72,33 @@
72
72
  "node": ">=20.11.0"
73
73
  },
74
74
  "dependencies": {
75
- "@eslint/js": "^9.4.0",
75
+ "@eslint/js": "^9.6.0",
76
76
  "eslint-config-prettier": "^9.1.0",
77
- "eslint-plugin-jsdoc": "^48.2.7",
77
+ "eslint-plugin-jsdoc": "^48.5.0",
78
78
  "eslint-plugin-mocha": "^10.4.3",
79
79
  "eslint-plugin-prettier": "^5.1.3",
80
- "eslint-plugin-promise": "^6.2.0",
81
- "eslint-plugin-jsx-a11y": "^6.8.0",
82
- "eslint-plugin-react": "^7.34.2",
80
+ "eslint-plugin-promise": "^6.4.0",
81
+ "eslint-plugin-jsx-a11y": "^6.9.0",
82
+ "eslint-plugin-react": "^7.34.3",
83
83
  "eslint-plugin-react-hooks": "^4.6.2",
84
- "eslint-plugin-security": "^3.0.0",
84
+ "eslint-plugin-security": "^3.0.1",
85
85
  "eslint-plugin-testing-library": "^6.2.2",
86
- "eslint-plugin-unicorn": "^53.0.0",
87
- "globals": "^15.3.0",
88
- "typescript-eslint": "^8.0.0-alpha.25"
86
+ "eslint-plugin-unicorn": "^54.0.0",
87
+ "globals": "^15.7.0",
88
+ "typescript-eslint": "8.0.0-alpha.29"
89
89
  },
90
90
  "devDependencies": {
91
- "@swc/core": "1.5.24",
91
+ "@swc/core": "1.6.6",
92
92
  "@types/node": ">=20",
93
- "eslint": "^9.4.0",
93
+ "eslint": "^9.6.0",
94
94
  "husky": "^9.0.11",
95
- "lint-staged": "^15.2.5",
95
+ "lint-staged": "^15.2.7",
96
96
  "markdownlint-cli": "^0.41.0",
97
97
  "npm-run-all": "^4.1.5",
98
98
  "pinst": "^3.0.0",
99
- "prettier": "^3.3.0",
99
+ "prettier": "^3.3.2",
100
100
  "rimraf": "^5.0.7",
101
- "typescript": "^5.4.5",
101
+ "typescript": "^5.5.3",
102
102
  "unbuild": "2.0.0"
103
103
  },
104
104
  "overrides": {
package/src/index.ts CHANGED
@@ -36,7 +36,7 @@ export function defaultConfig(options?: DefaultConfigOptions): ConfigWithExtends
36
36
  parserOptions: {
37
37
  // @ts-expect-error - This is a valid option
38
38
  projectService: {
39
- allowedDefaultProject: ['./*.js', './*.cjs', './*.mjs', './tests/**/*.ts', './tests/**/*.js', './tests/**/*.cjs', './tests/**/*.mjs'],
39
+ allowedDefaultProject: ['./*.{js,cjs,mjs}', './tests/**/*.{ts,js,cjs,mjs}'],
40
40
  defaultProject: 'tsconfig.json',
41
41
  },
42
42
  tsconfigRootDir: import.meta.dirname,
@@ -50,14 +50,6 @@ const base: ConfigWithExtends = {
50
50
  '@typescript-eslint/no-empty-interface': 'error',
51
51
  '@typescript-eslint/no-extra-semi': 'error',
52
52
  '@typescript-eslint/no-shadow': 'error',
53
- '@typescript-eslint/no-use-before-define': [
54
- 'error',
55
- {
56
- functions: true,
57
- classes: true,
58
- variables: true,
59
- },
60
- ],
61
53
  '@typescript-eslint/parameter-properties': [
62
54
  'error',
63
55
  {
@@ -67,6 +59,7 @@ const base: ConfigWithExtends = {
67
59
  '@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
68
60
  '@typescript-eslint/return-await': 'error',
69
61
  '@typescript-eslint/sort-type-constituents': 'error',
62
+ '@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
70
63
  },
71
64
  };
72
65