@jsse/eslint-config 0.2.17 → 0.2.19

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
@@ -24,9 +24,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  mod
25
25
  ));
26
26
 
27
- // node_modules/.pnpm/globals@15.9.0/node_modules/globals/globals.json
27
+ // node_modules/.pnpm/globals@15.10.0/node_modules/globals/globals.json
28
28
  var require_globals = __commonJS({
29
- "node_modules/.pnpm/globals@15.9.0/node_modules/globals/globals.json"(exports, module) {
29
+ "node_modules/.pnpm/globals@15.10.0/node_modules/globals/globals.json"(exports, module) {
30
30
  module.exports = {
31
31
  amd: {
32
32
  define: false,
@@ -99,6 +99,7 @@ var require_globals = __commonJS({
99
99
  BackgroundFetchManager: false,
100
100
  BackgroundFetchRecord: false,
101
101
  BackgroundFetchRegistration: false,
102
+ BarcodeDetector: false,
102
103
  BarProp: false,
103
104
  BaseAudioContext: false,
104
105
  BatteryManager: false,
@@ -702,6 +703,8 @@ var require_globals = __commonJS({
702
703
  onresize: true,
703
704
  onscroll: true,
704
705
  onscrollend: true,
706
+ onscrollsnapchange: true,
707
+ onscrollsnapchanging: true,
705
708
  onsearch: true,
706
709
  onsecuritypolicyviolation: true,
707
710
  onseeked: true,
@@ -893,6 +896,7 @@ var require_globals = __commonJS({
893
896
  showDirectoryPicker: false,
894
897
  showOpenFilePicker: false,
895
898
  showSaveFilePicker: false,
899
+ SnapEvent: false,
896
900
  SourceBuffer: false,
897
901
  SourceBufferList: false,
898
902
  speechSynthesis: false,
@@ -2660,6 +2664,7 @@ var require_globals = __commonJS({
2660
2664
  BackgroundFetchManager: false,
2661
2665
  BackgroundFetchRecord: false,
2662
2666
  BackgroundFetchRegistration: false,
2667
+ BarcodeDetector: false,
2663
2668
  Blob: false,
2664
2669
  BroadcastChannel: false,
2665
2670
  btoa: false,
@@ -2963,9 +2968,9 @@ var require_globals = __commonJS({
2963
2968
  }
2964
2969
  });
2965
2970
 
2966
- // node_modules/.pnpm/globals@15.9.0/node_modules/globals/index.js
2971
+ // node_modules/.pnpm/globals@15.10.0/node_modules/globals/index.js
2967
2972
  var require_globals2 = __commonJS({
2968
- "node_modules/.pnpm/globals@15.9.0/node_modules/globals/index.js"(exports, module) {
2973
+ "node_modules/.pnpm/globals@15.10.0/node_modules/globals/index.js"(exports, module) {
2969
2974
  "use strict";
2970
2975
  module.exports = require_globals();
2971
2976
  }
@@ -10653,32 +10658,7 @@ function typescriptRulesTypeOblivious() {
10653
10658
  "no-console": [
10654
10659
  "warn",
10655
10660
  {
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
- ]
10661
+ allow: ["warn", "error"]
10682
10662
  }
10683
10663
  ],
10684
10664
  "object-curly-spacing": "off",
@@ -11540,6 +11520,7 @@ var react = async (options) => {
11540
11520
  rules: {
11541
11521
  ...reactRecomendedRules(),
11542
11522
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
11523
+ // @ts-expect-error index access
11543
11524
  ...pluginReact.configs["jsx-runtime"].rules,
11544
11525
  ...reactRules()
11545
11526
  },
@@ -11562,6 +11543,14 @@ var react = async (options) => {
11562
11543
  version: "detect"
11563
11544
  }
11564
11545
  }
11546
+ },
11547
+ {
11548
+ files: [GLOB_JSX, GLOB_TSX],
11549
+ name: "jsse/react/disables",
11550
+ rules: {
11551
+ "unicorn/no-null": "off"
11552
+ // null is bueno in react
11553
+ }
11565
11554
  }
11566
11555
  ];
11567
11556
  if (reactRefresh) {
@@ -12118,6 +12107,7 @@ var unicorn = async () => {
12118
12107
  ...unicornRecommended(),
12119
12108
  ...unicornOff(),
12120
12109
  "unicorn/better-regex": "error",
12110
+ "unicorn/consistent-empty-array-spread": "error",
12121
12111
  "unicorn/custom-error-definition": "error",
12122
12112
  // Pass error message when throwing errors
12123
12113
  "unicorn/error-message": "error",
@@ -12576,9 +12566,13 @@ async function jsse(options = {}, ...userConfigs) {
12576
12566
  }
12577
12567
  }
12578
12568
  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";
12569
+ for (const cfgRules of [config.rules, config.plugins]) {
12570
+ if (cfgRules) {
12571
+ for (const rule of off) {
12572
+ if (cfgRules[rule] !== void 0 && cfgRules[rule] !== "off" && cfgRules[rule] !== 0) {
12573
+ cfgRules[rule] = "off";
12574
+ }
12575
+ }
12582
12576
  }
12583
12577
  }
12584
12578
  }
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.19",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -60,54 +60,55 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@eslint/compat": "^1.1.1",
63
- "@eslint/js": "~9.11.0",
64
- "@eslint/markdown": "^6.1.0",
65
- "@stylistic/eslint-plugin": "2.8.0",
66
- "@typescript-eslint/eslint-plugin": "^8.6.0",
67
- "@typescript-eslint/parser": "^8.6.0",
68
- "@vitest/eslint-plugin": "^1.1.4",
63
+ "@eslint/js": "~9.11.1",
64
+ "@eslint/markdown": "^6.2.0",
65
+ "@stylistic/eslint-plugin": "2.9.0",
66
+ "@typescript-eslint/eslint-plugin": "^8.8.1",
67
+ "@typescript-eslint/parser": "^8.8.1",
68
+ "@vitest/eslint-plugin": "^1.1.7",
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.1",
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",
84
84
  "eslint-plugin-tsdoc": "^0.3.0",
85
- "eslint-plugin-unicorn": "^55.0.0",
85
+ "eslint-plugin-unicorn": "^56.0.0",
86
86
  "eslint-plugin-unused-imports": "^4.1.4",
87
87
  "eslint-plugin-yml": "^1.14.0",
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.1",
92
92
  "yaml-eslint-parser": "^1.2.3"
93
93
  },
94
94
  "devDependencies": {
95
- "@biomejs/biome": "1.9.2",
96
- "@changesets/cli": "^2.27.8",
95
+ "@biomejs/biome": "1.9.3",
96
+ "@changesets/cli": "^2.27.9",
97
97
  "@jsse/prettier-config": "^0.1.0",
98
+ "@jsse/tsconfig": "^0.2.1",
98
99
  "@types/eslint": "^9.6.1",
99
100
  "@types/eslint__js": "~8.42.3",
100
101
  "@types/fs-extra": "^11.0.4",
101
- "@types/node": "^22.5.5",
102
+ "@types/node": "^22.7.4",
102
103
  "cac": "^6.7.14",
103
- "eslint": "^9.10.0",
104
+ "eslint": "^9.11.1",
104
105
  "eslint-flat-config-utils": "^0.4.0",
105
106
  "eslint-plugin-tailwindcss": "^3.17.4",
106
107
  "eslint-typegen": "^0.3.2",
107
108
  "execa": "~9.4.0",
108
109
  "fast-glob": "^3.3.2",
109
110
  "fs-extra": "^11.2.0",
110
- "globals": "^15.9.0",
111
+ "globals": "^15.10.0",
111
112
  "local-pkg": "^0.5.0",
112
113
  "prettier": "^3.3.3",
113
114
  "react": "~18.3.1",
@@ -116,7 +117,7 @@
116
117
  "tsup": "^8.3.0",
117
118
  "tsx": "^4.19.1",
118
119
  "typescript": "~5.6.2",
119
- "vitest": "^2.1.1"
120
+ "vitest": "^2.1.2"
120
121
  },
121
122
  "prettier": "@jsse/prettier-config",
122
123
  "scripts": {