@nighttrax/eslint-config-ts 12.0.0-beta.3 → 12.0.0-beta.5

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.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
+
8
+ ### Bug Fixes
9
+
10
+ - **ts:** Fix stories glob ([ba2d857](https://github.com/NiGhTTraX/eslint-config/commit/ba2d8572fce3ca7c9f6c82bfdd6030d5524819e2))
11
+
12
+ # [12.0.0-beta.4](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@12.0.0-beta.3...@nighttrax/eslint-config-ts@12.0.0-beta.4) (2025-07-15)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **ts:** Turn off no-undef after removing globals ([7243a76](https://github.com/NiGhTTraX/eslint-config/commit/7243a7643de08961b0a9c9c0598d128f45b8cc6d))
17
+
18
+ ### Features
19
+
20
+ - **ts:** Handle dev deps for stories ([d8ed0e3](https://github.com/NiGhTTraX/eslint-config/commit/d8ed0e31009e12ee50223922671710c24ab5696f))
21
+
6
22
  # [12.0.0-beta.3](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@12.0.0-beta.2...@nighttrax/eslint-config-ts@12.0.0-beta.3) (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.3",
3
+ "version": "12.0.0-beta.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@eslint/js": "~9.30.1",
22
+ "@stylistic/eslint-plugin": "~5.1.0",
22
23
  "@typescript-eslint/parser": "~8.35.1",
23
24
  "eslint-config-prettier": "~10.1.5",
24
25
  "eslint-import-resolver-typescript": "~4.4.4",
@@ -29,9 +30,5 @@
29
30
  "peerDependencies": {
30
31
  "eslint": "^9.0.0",
31
32
  "prettier": "^3.0.0"
32
- },
33
- "devDependencies": {
34
- "eslint": "~9.30.1",
35
- "prettier": "~3.6.2"
36
33
  }
37
34
  }
package/typescript.mjs CHANGED
@@ -3,6 +3,7 @@ import * as tsEslint from "typescript-eslint";
3
3
  import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
4
4
  import * as pluginImportX from "eslint-plugin-import-x";
5
5
  import * as tsParser from "@typescript-eslint/parser";
6
+ import stylistic from "@stylistic/eslint-plugin";
6
7
 
7
8
  const EXTENSIONS = "{js,mjs,cjs,ts,cts,mts,jsx,tsx}";
8
9
 
@@ -22,6 +23,12 @@ export const nighttraxTS = (...configs) =>
22
23
  languageOptions: { parser: tsParser },
23
24
  },
24
25
 
26
+ {
27
+ plugins: {
28
+ "@stylistic": stylistic,
29
+ },
30
+ },
31
+
25
32
  pluginJs.configs.recommended,
26
33
  tsEslint.configs.recommended,
27
34
  eslintPluginPrettierRecommended,
@@ -33,7 +40,7 @@ export const nighttraxTS = (...configs) =>
33
40
  "arrow-body-style": ["error", "as-needed"],
34
41
  "object-shorthand": "error",
35
42
  curly: ["error", "all"],
36
- "padding-line-between-statements": [
43
+ "@stylistic/padding-line-between-statements": [
37
44
  "error",
38
45
  { blankLine: "always", prev: "*", next: "return" },
39
46
  { blankLine: "always", prev: "*", next: "block-like" },
@@ -56,11 +63,12 @@ export const nighttraxTS = (...configs) =>
56
63
  `**/rollup.config.${EXTENSIONS}`,
57
64
  `**/vite.config.${EXTENSIONS}`,
58
65
  `**/vitest.config.${EXTENSIONS}`,
59
- `**/.storybook/main.${EXTENSIONS}`,
60
- `**/.storybook/preview.${EXTENSIONS}`,
61
66
  `**/eslint.config.${EXTENSIONS}`,
62
67
  `**/*.{spec,test}.${EXTENSIONS}`,
63
68
  "**/tests/**/*",
69
+ `**/.storybook/main.${EXTENSIONS}`,
70
+ `**/.storybook/preview.${EXTENSIONS}`,
71
+ `**/*.stories.${EXTENSIONS}`,
64
72
  ],
65
73
  },
66
74
  ],
@@ -69,6 +77,10 @@ export const nighttraxTS = (...configs) =>
69
77
 
70
78
  {
71
79
  rules: {
80
+ // This is already turned off for TS files,
81
+ // but leaving it on for JS requires globals, e.g., module.exports,
82
+ // which is not worth the effort.
83
+ "no-undef": "off",
72
84
  "@typescript-eslint/consistent-type-imports": "error",
73
85
  "@typescript-eslint/no-unused-vars": [
74
86
  "error",