@isentinel/eslint-config 0.5.1 → 0.5.3

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
@@ -1808,7 +1808,7 @@ async function promise() {
1808
1808
  init_cjs_shims();
1809
1809
  var import_compat2 = require("@eslint/compat");
1810
1810
  async function react(options = {}) {
1811
- const { files = [GLOB_TS, GLOB_TSX], overrides = {} } = options;
1811
+ const { files = [GLOB_TS, GLOB_TSX], importSource, jsxPragma, overrides = {} } = options;
1812
1812
  await ensurePackages(["@eslint-react/eslint-plugin", "eslint-plugin-react-hooks"]);
1813
1813
  const [pluginReact, pluginReactHooks, pluginStylistic, parserTs] = await Promise.all([
1814
1814
  interopDefault(import("@eslint-react/eslint-plugin")),
@@ -1975,8 +1975,8 @@ async function react(options = {}) {
1975
1975
  version: "17.0"
1976
1976
  },
1977
1977
  reactOptions: {
1978
- importSource: "@rbxts",
1979
- jsxPragma: "React"
1978
+ importSource: importSource ?? "@rbxts",
1979
+ jsxPragma: jsxPragma ?? "React"
1980
1980
  }
1981
1981
  }
1982
1982
  },
@@ -1985,6 +1985,12 @@ async function react(options = {}) {
1985
1985
  rules: {
1986
1986
  "react-hooks/rules-of-hooks": "off"
1987
1987
  }
1988
+ },
1989
+ {
1990
+ files: [GLOB_TSX],
1991
+ rules: {
1992
+ "max-lines-per-function": "off"
1993
+ }
1988
1994
  }
1989
1995
  ];
1990
1996
  }
package/dist/index.js CHANGED
@@ -1746,7 +1746,7 @@ async function promise() {
1746
1746
  init_esm_shims();
1747
1747
  import { fixupPluginRules as fixupPluginRules2 } from "@eslint/compat";
1748
1748
  async function react(options = {}) {
1749
- const { files = [GLOB_TS, GLOB_TSX], overrides = {} } = options;
1749
+ const { files = [GLOB_TS, GLOB_TSX], importSource, jsxPragma, overrides = {} } = options;
1750
1750
  await ensurePackages(["@eslint-react/eslint-plugin", "eslint-plugin-react-hooks"]);
1751
1751
  const [pluginReact, pluginReactHooks, pluginStylistic, parserTs] = await Promise.all([
1752
1752
  interopDefault(import("@eslint-react/eslint-plugin")),
@@ -1913,8 +1913,8 @@ async function react(options = {}) {
1913
1913
  version: "17.0"
1914
1914
  },
1915
1915
  reactOptions: {
1916
- importSource: "@rbxts",
1917
- jsxPragma: "React"
1916
+ importSource: importSource ?? "@rbxts",
1917
+ jsxPragma: jsxPragma ?? "React"
1918
1918
  }
1919
1919
  }
1920
1920
  },
@@ -1923,6 +1923,12 @@ async function react(options = {}) {
1923
1923
  rules: {
1924
1924
  "react-hooks/rules-of-hooks": "off"
1925
1925
  }
1926
+ },
1927
+ {
1928
+ files: [GLOB_TSX],
1929
+ rules: {
1930
+ "max-lines-per-function": "off"
1931
+ }
1926
1932
  }
1927
1933
  ];
1928
1934
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
3
  "type": "module",
4
- "version": "0.5.1",
4
+ "version": "0.5.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -111,7 +111,7 @@
111
111
  "simple-git-hooks": "^2.11.1",
112
112
  "tsup": "^8.0.2",
113
113
  "typescript": "^5.4.5",
114
- "@isentinel/eslint-config": "0.5.1"
114
+ "@isentinel/eslint-config": "0.5.3"
115
115
  },
116
116
  "simple-git-hooks": {
117
117
  "pre-commit": "pnpm lint-staged"