@nighttrax/eslint-config-ts 12.0.0-beta.5 → 12.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [12.0.1](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@12.0.0...@nighttrax/eslint-config-ts@12.0.1) (2025-07-17)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **deps:** update dependency @stylistic/eslint-plugin to ~5.2.0 ([2c105ea](https://github.com/NiGhTTraX/eslint-config/commit/2c105eab72250704c4abb4d8b06ce407283a249a))
11
+ - **deps:** update eslint monorepo to ~9.31.0 ([9251058](https://github.com/NiGhTTraX/eslint-config/commit/925105802c9e6bca8b3802e515055659008e99df))
12
+ - **deps:** update typescript-eslint monorepo to ~8.37.0 ([68b3063](https://github.com/NiGhTTraX/eslint-config/commit/68b3063420b683d75197c02ba55c0642d2b7468c))
13
+
14
+ # [12.0.0-beta.6](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@12.0.0-beta.5...@nighttrax/eslint-config-ts@12.0.0-beta.6) (2025-07-17)
15
+
16
+ ### Features
17
+
18
+ - **ts,react:** Parametrize configs ([f13060f](https://github.com/NiGhTTraX/eslint-config/commit/f13060ff3529fc041488f1b7d23cb2c42f8fe5ed))
19
+ - **ts:** Add more config file globs ([58c40dd](https://github.com/NiGhTTraX/eslint-config/commit/58c40dddcfa33fc8ddc427746e88dee96fec2800))
20
+ - **ts:** Add more ignore globs ([b75ee22](https://github.com/NiGhTTraX/eslint-config/commit/b75ee229ce4e5d72185ad2950fc54509c2324b01))
21
+
6
22
  # [12.0.0-beta.5](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@12.0.0-beta.4...@nighttrax/eslint-config-ts@12.0.0-beta.5) (2025-07-15)
7
23
 
8
24
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nighttrax/eslint-config-ts",
3
- "version": "12.0.0-beta.5",
3
+ "version": "12.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,14 +18,14 @@
18
18
  "url": "git+https://github.com/NiGhTTraX/eslint-config.git"
19
19
  },
20
20
  "dependencies": {
21
- "@eslint/js": "~9.30.1",
22
- "@stylistic/eslint-plugin": "~5.1.0",
23
- "@typescript-eslint/parser": "~8.35.1",
21
+ "@eslint/js": "~9.31.0",
22
+ "@stylistic/eslint-plugin": "~5.2.0",
23
+ "@typescript-eslint/parser": "~8.37.0",
24
24
  "eslint-config-prettier": "~10.1.5",
25
25
  "eslint-import-resolver-typescript": "~4.4.4",
26
26
  "eslint-plugin-import-x": "~4.16.1",
27
27
  "eslint-plugin-prettier": "~5.5.1",
28
- "typescript-eslint": "~8.35.1"
28
+ "typescript-eslint": "~8.37.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "eslint": "^9.0.0",
package/typescript.mjs CHANGED
@@ -5,19 +5,27 @@ import * as pluginImportX from "eslint-plugin-import-x";
5
5
  import * as tsParser from "@typescript-eslint/parser";
6
6
  import stylistic from "@stylistic/eslint-plugin";
7
7
 
8
- const EXTENSIONS = "{js,mjs,cjs,ts,cts,mts,jsx,tsx}";
8
+ export const EXTENSIONS = "{js,mjs,cjs,ts,cts,mts,jsx,tsx}";
9
9
 
10
10
  /**
11
- * @param {import('typescript-eslint').InfiniteDepthConfigWithExtends[]} configs
11
+ * @param {import('typescript-eslint').InfiniteDepthConfigWithExtends[]} [configs]
12
+ *
13
+ * @param {object} opts
14
+ * @param {string[]} [opts.ignores] A list of globs that will be ignored.
15
+ * @param {string[]} [opts.devDeps] A list of globs that will be matched for
16
+ * the `import-x/no-extraneous-dependencies` rule's `devDependencies` option.
12
17
  */
13
- export const nighttraxTS = (...configs) =>
18
+ export const nighttraxTS = (
19
+ configs = [],
20
+ { devDeps = [], ignores = [] } = {},
21
+ ) =>
14
22
  tsEslint.config([
15
23
  {
16
24
  linterOptions: {
17
25
  reportUnusedDisableDirectives: "error",
18
26
  },
19
27
  },
20
- { ignores: ["**/dist/"] },
28
+ { ignores: ["**/dist/", "tests/results/", ...ignores] },
21
29
  {
22
30
  files: [`**/*.${EXTENSIONS}`],
23
31
  languageOptions: { parser: tsParser },
@@ -59,16 +67,12 @@ export const nighttraxTS = (...configs) =>
59
67
  "error",
60
68
  {
61
69
  devDependencies: [
62
- `**/webpack.config.${EXTENSIONS}`,
63
- `**/rollup.config.${EXTENSIONS}`,
64
- `**/vite.config.${EXTENSIONS}`,
65
- `**/vitest.config.${EXTENSIONS}`,
70
+ `**/{webpack,rollup,vite,vitest}.config.${EXTENSIONS}`,
66
71
  `**/eslint.config.${EXTENSIONS}`,
67
72
  `**/*.{spec,test}.${EXTENSIONS}`,
68
73
  "**/tests/**/*",
69
- `**/.storybook/main.${EXTENSIONS}`,
70
- `**/.storybook/preview.${EXTENSIONS}`,
71
- `**/*.stories.${EXTENSIONS}`,
74
+
75
+ ...devDeps,
72
76
  ],
73
77
  },
74
78
  ],