@nighttrax/eslint-config-ts 12.0.0-beta.2 → 12.0.0-beta.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/CHANGELOG.md +11 -0
- package/package.json +1 -1
- package/typescript.mjs +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.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
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ts:** Report errors from incorrect default imports ([238a87a](https://github.com/NiGhTTraX/eslint-config/commit/238a87a7b340f8bcae45aac01ecaf59d234b64e8))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **ts,tsx:** Add a default ignore list ([ec4f3a8](https://github.com/NiGhTTraX/eslint-config/commit/ec4f3a89047d3a23c4f19248799e4c0625517c1b))
|
|
15
|
+
- **ts:** Report unused `eslint-disable` directives ([e58fe64](https://github.com/NiGhTTraX/eslint-config/commit/e58fe6489343520812e698c58121bf788b7a6fe1))
|
|
16
|
+
|
|
6
17
|
# [12.0.0-beta.2](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@12.0.0-beta.1...@nighttrax/eslint-config-ts@12.0.0-beta.2) (2025-07-10)
|
|
7
18
|
|
|
8
19
|
### Features
|
package/package.json
CHANGED
package/typescript.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import pluginJs from "@eslint/js";
|
|
2
|
-
import tsEslint from "typescript-eslint";
|
|
2
|
+
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";
|
|
@@ -11,6 +11,12 @@ const EXTENSIONS = "{js,mjs,cjs,ts,cts,mts,jsx,tsx}";
|
|
|
11
11
|
*/
|
|
12
12
|
export const nighttraxTS = (...configs) =>
|
|
13
13
|
tsEslint.config([
|
|
14
|
+
{
|
|
15
|
+
linterOptions: {
|
|
16
|
+
reportUnusedDisableDirectives: "error",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{ ignores: ["**/dist/"] },
|
|
14
20
|
{
|
|
15
21
|
files: [`**/*.${EXTENSIONS}`],
|
|
16
22
|
languageOptions: { parser: tsParser },
|
|
@@ -42,9 +48,6 @@ export const nighttraxTS = (...configs) =>
|
|
|
42
48
|
|
|
43
49
|
{
|
|
44
50
|
rules: {
|
|
45
|
-
// TypeScript should report incorrect imports.
|
|
46
|
-
"import-x/no-named-as-default-member": "off",
|
|
47
|
-
"import-x/namespace": "off",
|
|
48
51
|
"import-x/no-extraneous-dependencies": [
|
|
49
52
|
"error",
|
|
50
53
|
{
|
|
@@ -57,7 +60,7 @@ export const nighttraxTS = (...configs) =>
|
|
|
57
60
|
`**/.storybook/preview.${EXTENSIONS}`,
|
|
58
61
|
`**/eslint.config.${EXTENSIONS}`,
|
|
59
62
|
`**/*.{spec,test}.${EXTENSIONS}`,
|
|
60
|
-
"**/tests
|
|
63
|
+
"**/tests/**/*",
|
|
61
64
|
],
|
|
62
65
|
},
|
|
63
66
|
],
|
|
@@ -66,7 +69,6 @@ export const nighttraxTS = (...configs) =>
|
|
|
66
69
|
|
|
67
70
|
{
|
|
68
71
|
rules: {
|
|
69
|
-
"@typescript-eslint/no-explicit-any": "warn",
|
|
70
72
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
71
73
|
"@typescript-eslint/no-unused-vars": [
|
|
72
74
|
"error",
|