@ncontiero/eslint-config 8.3.0 → 8.3.2

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.d.mts CHANGED
@@ -4052,6 +4052,11 @@ interface RuleOptions {
4052
4052
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-fetch
4053
4053
  */
4054
4054
  'react/web-api-no-leaked-fetch'?: Linter.RuleEntry<[]>;
4055
+ /**
4056
+ * Enforces that every 'IntersectionObserver' created in a component or custom hook has a corresponding 'IntersectionObserver.disconnect()'.
4057
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-intersection-observer
4058
+ */
4059
+ 'react/web-api-no-leaked-intersection-observer'?: Linter.RuleEntry<[]>;
4055
4060
  /**
4056
4061
  * Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
4057
4062
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
@@ -13856,6 +13861,7 @@ type TailwindcssEnforceLogicalProperties = [] | [{
13856
13861
  detectComponentClasses?: boolean;
13857
13862
  rootFontSize?: number;
13858
13863
  cwd?: string;
13864
+ ignore?: string[];
13859
13865
  }]; // ----- tailwindcss/enforce-shorthand-classes -----
13860
13866
  type TailwindcssEnforceShorthandClasses = [] | [{
13861
13867
  selectors?: ({
package/dist/index.mjs CHANGED
@@ -794,6 +794,10 @@ function perfectionist(options = {}) {
794
794
  "perfectionist/sort-exports": ["warn", { type: "natural" }],
795
795
  "perfectionist/sort-imports": ["warn", {
796
796
  customGroups: [{
797
+ elementNamePattern: ["^react$", "^react-(?!.*.css$).+"],
798
+ groupName: "react-type",
799
+ selector: "type"
800
+ }, {
797
801
  elementNamePattern: ["^react$", "^react-(?!.*.css$).+"],
798
802
  groupName: "react"
799
803
  }],
@@ -801,6 +805,7 @@ function perfectionist(options = {}) {
801
805
  "side-effect-style",
802
806
  "style",
803
807
  "type-import",
808
+ "react-type",
804
809
  "type-external",
805
810
  "type-internal",
806
811
  [
@@ -1307,7 +1312,7 @@ async function tailwindcss(options = {}) {
1307
1312
  "tailwindcss/enforce-consistent-line-wrapping": ["warn", {
1308
1313
  group: "never",
1309
1314
  preferSingleLine: true,
1310
- printWidth: 120
1315
+ printWidth: 125
1311
1316
  }],
1312
1317
  "tailwindcss/enforce-consistent-variable-syntax": "error",
1313
1318
  "tailwindcss/enforce-consistent-variant-order": "warn",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncontiero/eslint-config",
3
3
  "type": "module",
4
- "version": "8.3.0",
4
+ "version": "8.3.2",
5
5
  "description": "Nicolas's ESLint config.",
6
6
  "author": {
7
7
  "name": "Nicolas Contiero",
@@ -39,17 +39,17 @@
39
39
  "dependencies": {
40
40
  "@e18e/eslint-plugin": "^0.5.0",
41
41
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
42
- "@eslint-react/eslint-plugin": "^5.8.16",
42
+ "@eslint-react/eslint-plugin": "^5.9.0",
43
43
  "@eslint/markdown": "^8.0.2",
44
44
  "@html-eslint/eslint-plugin": "^0.62.0",
45
45
  "@html-eslint/parser": "^0.62.0",
46
- "@next/eslint-plugin-next": "^16.2.7",
46
+ "@next/eslint-plugin-next": "^16.2.9",
47
47
  "@typescript-eslint/eslint-plugin": "^8.61.0",
48
48
  "@typescript-eslint/parser": "^8.61.0",
49
49
  "eslint-config-flat-gitignore": "^2.3.0",
50
50
  "eslint-merge-processors": "^2.0.0",
51
51
  "eslint-plugin-antfu": "^3.2.3",
52
- "eslint-plugin-better-tailwindcss": "4.5.0",
52
+ "eslint-plugin-better-tailwindcss": "4.6.0",
53
53
  "eslint-plugin-command": "^3.5.2",
54
54
  "eslint-plugin-de-morgan": "^2.1.2",
55
55
  "eslint-plugin-import-x": "^4.16.2",
@@ -81,8 +81,8 @@
81
81
  "@ncontiero/prettier-config": "^1.0.0",
82
82
  "@tanstack/eslint-plugin-query": "^5.101.0",
83
83
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
84
- "@types/node": "^25.9.2",
85
- "eslint": "^10.4.1",
84
+ "@types/node": "^25.9.3",
85
+ "eslint": "^10.5.0",
86
86
  "eslint-typegen": "^2.3.1",
87
87
  "husky": "^9.1.7",
88
88
  "nano-staged": "^1.0.2",