@jsse/eslint-config 0.2.17 → 0.2.18

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.js CHANGED
@@ -10653,32 +10653,7 @@ function typescriptRulesTypeOblivious() {
10653
10653
  "no-console": [
10654
10654
  "warn",
10655
10655
  {
10656
- allow: [
10657
- "log",
10658
- "warn",
10659
- "dir",
10660
- "time",
10661
- "timeEnd",
10662
- "timeLog",
10663
- "trace",
10664
- "assert",
10665
- "clear",
10666
- "count",
10667
- "countReset",
10668
- "group",
10669
- "groupEnd",
10670
- "table",
10671
- "debug",
10672
- "info",
10673
- "dirxml",
10674
- "error",
10675
- "groupCollapsed",
10676
- "Console",
10677
- "profile",
10678
- "profileEnd",
10679
- "timeStamp",
10680
- "context"
10681
- ]
10656
+ allow: ["warn", "error"]
10682
10657
  }
10683
10658
  ],
10684
10659
  "object-curly-spacing": "off",
@@ -12118,6 +12093,7 @@ var unicorn = async () => {
12118
12093
  ...unicornRecommended(),
12119
12094
  ...unicornOff(),
12120
12095
  "unicorn/better-regex": "error",
12096
+ "unicorn/consistent-empty-array-spread": "error",
12121
12097
  "unicorn/custom-error-definition": "error",
12122
12098
  // Pass error message when throwing errors
12123
12099
  "unicorn/error-message": "error",
@@ -12576,9 +12552,13 @@ async function jsse(options = {}, ...userConfigs) {
12576
12552
  }
12577
12553
  }
12578
12554
  for (const config of combinedConfigs) {
12579
- for (const rule of Object.keys(config.rules ?? {})) {
12580
- if (off.includes(rule) && config.rules) {
12581
- config.rules[rule] = "off";
12555
+ for (const cfgRules of [config.rules, config.plugins]) {
12556
+ if (cfgRules) {
12557
+ for (const rule of off) {
12558
+ if (cfgRules[rule] !== void 0 && cfgRules[rule] !== "off" && cfgRules[rule] !== 0) {
12559
+ cfgRules[rule] = "off";
12560
+ }
12561
+ }
12582
12562
  }
12583
12563
  }
12584
12564
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.2.17",
4
+ "version": "0.2.18",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -60,24 +60,24 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@eslint/compat": "^1.1.1",
63
- "@eslint/js": "~9.11.0",
64
- "@eslint/markdown": "^6.1.0",
63
+ "@eslint/js": "~9.11.1",
64
+ "@eslint/markdown": "^6.1.1",
65
65
  "@stylistic/eslint-plugin": "2.8.0",
66
- "@typescript-eslint/eslint-plugin": "^8.6.0",
67
- "@typescript-eslint/parser": "^8.6.0",
66
+ "@typescript-eslint/eslint-plugin": "^8.8.0",
67
+ "@typescript-eslint/parser": "^8.8.0",
68
68
  "@vitest/eslint-plugin": "^1.1.4",
69
69
  "eslint-config-flat-gitignore": "^0.3.0",
70
70
  "eslint-define-config": "^2.1.0",
71
71
  "eslint-plugin-antfu": "^2.7.0",
72
72
  "eslint-plugin-eslint-comments": "^3.2.0",
73
- "eslint-plugin-import-x": "^4.2.1",
74
- "eslint-plugin-jsdoc": "^50.2.4",
73
+ "eslint-plugin-import-x": "^4.3.1",
74
+ "eslint-plugin-jsdoc": "^50.3.1",
75
75
  "eslint-plugin-jsonc": "^2.16.0",
76
76
  "eslint-plugin-markdown": "^5.1.0",
77
77
  "eslint-plugin-n": "^17.10.3",
78
78
  "eslint-plugin-no-only-tests": "^3.3.0",
79
- "eslint-plugin-perfectionist": "^3.6.0",
80
- "eslint-plugin-react": "~7.36.1",
79
+ "eslint-plugin-perfectionist": "^3.8.0",
80
+ "eslint-plugin-react": "~7.37.0",
81
81
  "eslint-plugin-react-hooks": "~4.6.2",
82
82
  "eslint-plugin-react-refresh": "~0.4.12",
83
83
  "eslint-plugin-toml": "^0.11.1",
@@ -88,7 +88,7 @@
88
88
  "jsonc-eslint-parser": "^2.4.0",
89
89
  "picocolors": "^1.1.0",
90
90
  "toml-eslint-parser": "^0.10.0",
91
- "typescript-eslint": "^8.6.0",
91
+ "typescript-eslint": "^8.8.0",
92
92
  "yaml-eslint-parser": "^1.2.3"
93
93
  },
94
94
  "devDependencies": {
@@ -98,9 +98,9 @@
98
98
  "@types/eslint": "^9.6.1",
99
99
  "@types/eslint__js": "~8.42.3",
100
100
  "@types/fs-extra": "^11.0.4",
101
- "@types/node": "^22.5.5",
101
+ "@types/node": "^22.7.4",
102
102
  "cac": "^6.7.14",
103
- "eslint": "^9.10.0",
103
+ "eslint": "^9.11.1",
104
104
  "eslint-flat-config-utils": "^0.4.0",
105
105
  "eslint-plugin-tailwindcss": "^3.17.4",
106
106
  "eslint-typegen": "^0.3.2",