@nighttrax/eslint-config-ts 12.0.0-beta.4 → 12.0.0-beta.6
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 +14 -0
- package/package.json +1 -5
- package/typescript.mjs +15 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.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)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **ts,react:** Parametrize configs ([f13060f](https://github.com/NiGhTTraX/eslint-config/commit/f13060ff3529fc041488f1b7d23cb2c42f8fe5ed))
|
|
11
|
+
- **ts:** Add more config file globs ([58c40dd](https://github.com/NiGhTTraX/eslint-config/commit/58c40dddcfa33fc8ddc427746e88dee96fec2800))
|
|
12
|
+
- **ts:** Add more ignore globs ([b75ee22](https://github.com/NiGhTTraX/eslint-config/commit/b75ee229ce4e5d72185ad2950fc54509c2324b01))
|
|
13
|
+
|
|
14
|
+
# [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)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
- **ts:** Fix stories glob ([ba2d857](https://github.com/NiGhTTraX/eslint-config/commit/ba2d8572fce3ca7c9f6c82bfdd6030d5524819e2))
|
|
19
|
+
|
|
6
20
|
# [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)
|
|
7
21
|
|
|
8
22
|
### 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
|
+
"version": "12.0.0-beta.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,9 +30,5 @@
|
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"eslint": "^9.0.0",
|
|
32
32
|
"prettier": "^3.0.0"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"eslint": "~9.30.1",
|
|
36
|
-
"prettier": "~3.6.2"
|
|
37
33
|
}
|
|
38
34
|
}
|
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 = (
|
|
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}`,
|
|
66
|
-
`**/.storybook/main.${EXTENSIONS}`,
|
|
67
|
-
`**/.storybook/preview.${EXTENSIONS}`,
|
|
70
|
+
`**/{webpack,rollup,vite,vitest}.config.${EXTENSIONS}`,
|
|
68
71
|
`**/eslint.config.${EXTENSIONS}`,
|
|
69
72
|
`**/*.{spec,test}.${EXTENSIONS}`,
|
|
70
73
|
"**/tests/**/*",
|
|
71
|
-
|
|
74
|
+
|
|
75
|
+
...devDeps,
|
|
72
76
|
],
|
|
73
77
|
},
|
|
74
78
|
],
|