@chris.araneo/eslint-config 0.0.136 → 0.0.138
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/README.md +1 -1
- package/dist/src/builder/append-cross-config-files-to-ignores.js +3 -3
- package/dist/src/builder/append-cross-config-files-to-ignores.js.map +1 -1
- package/dist/src/builder/get-config-value.js +1 -4
- package/dist/src/builder/get-config-value.js.map +1 -1
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<img src="https://avatars.githubusercontent.com/u/6019716" alt="Official @eslint GitHub user avatar" width="256px" height="256px"/>
|
|
5
5
|
<br>
|
|
6
|
-
<a href="https://github.com/ChrisAraneo/eslint-config/blob/master/package.json"><img src="https://img.shields.io/badge/version-v0.0.
|
|
6
|
+
<a href="https://github.com/ChrisAraneo/eslint-config/blob/master/package.json"><img src="https://img.shields.io/badge/version-v0.0.138-blue" alt="version"></a>
|
|
7
7
|
<a href="https://github.com/ChrisAraneo/eslint-config/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="@chris.araneo/eslint-config is released under the MIT license."></a>
|
|
8
8
|
<a href="https://github.com/ChrisAraneo/eslint-config/actions/workflows/ci.yml"><img alt="GitHub CI Status" src="https://img.shields.io/github/actions/workflow/status/ChrisAraneo/eslint-config/ci.yml?label=CI&logo=GitHub"></a>
|
|
9
9
|
<br>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { chain,
|
|
1
|
+
import { chain, isEmpty } from 'lodash-es';
|
|
2
2
|
import { JSONS, NX, SOURCES, TEMPLATES, TESTS, } from '../interfaces.js';
|
|
3
3
|
import { getConfigValue } from './get-config-value.js';
|
|
4
4
|
import { getUniqueConfigFiles } from './get-unique-config-files.js';
|
|
@@ -28,9 +28,9 @@ export const appendCrossConfigFilesToIgnores = ({ configBlock, }) => chain([
|
|
|
28
28
|
...currentIgnores,
|
|
29
29
|
...getUniqueConfigFiles({ configBlock, keys: ignores }),
|
|
30
30
|
];
|
|
31
|
-
return
|
|
31
|
+
return isEmpty(updatedIgnores)
|
|
32
32
|
? config
|
|
33
|
-
: { ...config, ignores: updatedIgnores }
|
|
33
|
+
: { ...config, ignores: updatedIgnores };
|
|
34
34
|
}),
|
|
35
35
|
])
|
|
36
36
|
.reduce((acc, [key, configs]) => ({ ...acc, [key]: configs }), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append-cross-config-files-to-ignores.js","sourceRoot":"/","sources":["src/builder/append-cross-config-files-to-ignores.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"append-cross-config-files-to-ignores.js","sourceRoot":"/","sources":["src/builder/append-cross-config-files-to-ignores.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAGL,KAAK,EACL,EAAE,EACF,OAAO,EACP,SAAS,EACT,KAAK,GACN,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAMpE,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,EAC9C,WAAW,GACL,EAAe,EAAE,CACvB,KAAK,CAAC;IACJ;QACE,OAAO,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;QAC3B,GAAG,EAAE,OAAO;KACb;IACD;QACE,OAAO,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;QAC3B,GAAG,EAAE,KAAK;KACX;IACD;QACE,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC;QACpC,GAAG,EAAE,SAAS;KACf;IACD;QACE,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC;QACxC,GAAG,EAAE,KAAK;KACX;CACF,CAAC;KACC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;IACzB,GAAG;IACH,CAAC,cAAc,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,GAAgB,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAChE,CAAC,MAAM,EAAE,EAAE;QACT,MAAM,cAAc,GAAa,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QACtD,MAAM,cAAc,GAAG;YACrB,GAAG,cAAc;YACjB,GAAG,oBAAoB,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SACxD,CAAC;QAEF,OAAO,OAAO,CAAC,cAAc,CAAC;YAC5B,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;IAC7C,CAAC,CACF;CACF,CAAC;KACD,MAAM,CACL,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,GAAgB,CAAC,EAAE,OAAO,EAAE,CAAC,EAClE;IACE,GAAG,WAAW;CACA,CACjB;KACA,KAAK,EAAE,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { cloneDeep } from 'lodash-es';
|
|
2
1
|
import { isConfigKey } from './is-config-key.js';
|
|
3
|
-
export const getConfigValue = ({ configBlock, key }) => isConfigKey({ value: key })
|
|
4
|
-
? cloneDeep(configBlock[key] ?? [])
|
|
5
|
-
: [];
|
|
2
|
+
export const getConfigValue = ({ configBlock, key }) => isConfigKey({ value: key }) ? (configBlock[key] ?? []) : [];
|
|
6
3
|
//# sourceMappingURL=get-config-value.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-config-value.js","sourceRoot":"/","sources":["src/builder/get-config-value.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-config-value.js","sourceRoot":"/","sources":["src/builder/get-config-value.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAOjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,WAAW,EAAE,GAAG,EAAS,EAAmB,EAAE,CAC7E,WAAW,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,GAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chris.araneo/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.138",
|
|
4
4
|
"description": "ESLint shareable configuration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"@humanwhocodes/momoa": "^3.3.10",
|
|
40
40
|
"@nx/eslint-plugin": "^22.3.3",
|
|
41
41
|
"@stylistic/eslint-plugin": "^5.9.0",
|
|
42
|
-
"@types/lodash-es": "^4.17.12",
|
|
43
42
|
"angular-eslint": "^21.2.0",
|
|
44
43
|
"app-root-dir": "^1.0.2",
|
|
45
44
|
"eslint": "^9.39.3",
|
|
@@ -52,7 +51,6 @@
|
|
|
52
51
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
53
52
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
54
53
|
"jsonc-eslint-parser": "^3.1.0",
|
|
55
|
-
"lodash": "^4.17.23",
|
|
56
54
|
"lodash-es": "^4.17.23",
|
|
57
55
|
"ts-pattern": "^5.9.0",
|
|
58
56
|
"typescript-eslint": "^8.56.0"
|
|
@@ -61,7 +59,7 @@
|
|
|
61
59
|
"@jest/globals": "^30.2.0",
|
|
62
60
|
"@types/app-root-dir": "^0.1.4",
|
|
63
61
|
"@types/jest": "^30.0.0",
|
|
64
|
-
"@types/lodash": "^4.17.
|
|
62
|
+
"@types/lodash-es": "^4.17.12",
|
|
65
63
|
"jest": "^30.2.0",
|
|
66
64
|
"jiti": "^2.6.1",
|
|
67
65
|
"prettier": "^3.8.1",
|